public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto @ 2011-12-04 1:03 reichelt at gcc dot gnu.org 2011-12-04 1:03 ` [Bug c++/51404] " reichelt at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-04 1:03 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51404 Bug #: 51404 Summary: [c++0x] [4.7 Regression] ICE with invalid use of auto Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: reichelt@gcc.gnu.org The following invalid code snippet triggers an ICE on trunk: =================== int i = auto().x; =================== bug.cc:1:14: error: invalid use of 'auto' bug.cc:1:15: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51404] [c++0x] [4.7 Regression] ICE with invalid use of auto 2011-12-04 1:03 [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto reichelt at gcc dot gnu.org @ 2011-12-04 1:03 ` reichelt at gcc dot gnu.org 2011-12-04 17:38 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-04 1:03 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51404 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery, | |ice-on-invalid-code Target Milestone|--- |4.7.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51404] [c++0x] [4.7 Regression] ICE with invalid use of auto 2011-12-04 1:03 [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto reichelt at gcc dot gnu.org 2011-12-04 1:03 ` [Bug c++/51404] " reichelt at gcc dot gnu.org @ 2011-12-04 17:38 ` paolo.carlini at oracle dot com 2011-12-05 15:47 ` paolo at gcc dot gnu.org 2011-12-05 15:49 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-12-04 17:38 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51404 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011-12-04 AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot |gnu.org |com Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-04 17:37:38 UTC --- On it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51404] [c++0x] [4.7 Regression] ICE with invalid use of auto 2011-12-04 1:03 [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto reichelt at gcc dot gnu.org 2011-12-04 1:03 ` [Bug c++/51404] " reichelt at gcc dot gnu.org 2011-12-04 17:38 ` paolo.carlini at oracle dot com @ 2011-12-05 15:47 ` paolo at gcc dot gnu.org 2011-12-05 15:49 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo at gcc dot gnu.org @ 2011-12-05 15:47 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51404 --- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-05 15:46:34 UTC --- Author: paolo Date: Mon Dec 5 15:46:30 2011 New Revision: 182011 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182011 Log: /cp 2011-12-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51404 * typeck2.c (build_functional_cast): Early return error_mark_node for invalid uses of 'auto'. * parser.c (cp_parser_direct_declarator): When cp_parser_constant_expression returns error do not produce further diagnostic for the bound. /testsuite 2011-12-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51404 * g++.dg/cpp0x/auto28.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/auto28.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51404] [c++0x] [4.7 Regression] ICE with invalid use of auto 2011-12-04 1:03 [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2011-12-05 15:47 ` paolo at gcc dot gnu.org @ 2011-12-05 15:49 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2011-12-05 15:49 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51404 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-05 15:48:38 UTC --- Fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-05 15:49 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-04 1:03 [Bug c++/51404] New: [c++0x] [4.7 Regression] ICE with invalid use of auto reichelt at gcc dot gnu.org 2011-12-04 1:03 ` [Bug c++/51404] " reichelt at gcc dot gnu.org 2011-12-04 17:38 ` paolo.carlini at oracle dot com 2011-12-05 15:47 ` paolo at gcc dot gnu.org 2011-12-05 15:49 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).