public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr @ 2013-10-03 21:20 reichelt at gcc dot gnu.org 2013-10-10 11:39 ` [Bug c++/58609] " rguenth at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-10-03 21:20 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 Bug ID: 58609 Summary: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-std=c++11") triggers an ICE on trunk (since at least GCC 4.9.0 20130920): =================================== struct A { static constexpr int&& i = 0; }; int j = A::i; =================================== bug.cc:3:30: error: non-constant in-class initialization invalid for static member 'A::i' static constexpr int&& i = 0; ^ bug.cc:3:30: error: (an out of class initialization is required) cc1plus: internal compiler error: in record_reference, at cgraphbuild.c:66 0x7ff843 record_reference ../../gcc/gcc/cgraphbuild.c:66 0xcf44ab walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, pointer_set_t*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, pointer_set_t*)) ../../gcc/gcc/tree.c:10928 0xcf48e5 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, pointer_set_t*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, pointer_set_t*)) ../../gcc/gcc/tree.c:11191 0x8001fd record_references_in_initializer(tree_node*, bool) ../../gcc/gcc/cgraphbuild.c:427 0xd2ce67 varpool_analyze_node(varpool_node*) ../../gcc/gcc/varpool.c:398 0x804147 analyze_functions ../../gcc/gcc/cgraphunit.c:1035 0x805669 finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2260 0x6188a0 cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4360 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/58609] [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org @ 2013-10-10 11:39 ` rguenth at gcc dot gnu.org 2013-11-05 14:47 ` rguenth at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-10-10 11:39 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.9.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/58609] [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org 2013-10-10 11:39 ` [Bug c++/58609] " rguenth at gcc dot gnu.org @ 2013-11-05 14:47 ` rguenth at gcc dot gnu.org 2014-02-03 10:36 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-11-05 14:47 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/58609] [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org 2013-10-10 11:39 ` [Bug c++/58609] " rguenth at gcc dot gnu.org 2013-11-05 14:47 ` rguenth at gcc dot gnu.org @ 2014-02-03 10:36 ` paolo.carlini at oracle dot com 2014-03-07 18:34 ` paolo.carlini at oracle dot com 2014-03-07 18:34 ` paolo at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2014-02-03 10:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2014-02-03 Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com Ever confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> --- Mine. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/58609] [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2014-02-03 10:36 ` paolo.carlini at oracle dot com @ 2014-03-07 18:34 ` paolo.carlini at oracle dot com 2014-03-07 18:34 ` paolo at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2014-03-07 18:34 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/58609] [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2014-03-07 18:34 ` paolo.carlini at oracle dot com @ 2014-03-07 18:34 ` paolo at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: paolo at gcc dot gnu.org @ 2014-03-07 18:34 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58609 --- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Fri Mar 7 18:33:38 2014 New Revision: 208410 URL: http://gcc.gnu.org/viewcvs?rev=208410&root=gcc&view=rev Log: /cp 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58609 * decl.c (check_initializer): Return NULL_TREE after error; consistently use inform. /testsuite 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58609 * g++.dg/cpp0x/constexpr-ice12.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ice12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-07 18:34 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-03 21:20 [Bug c++/58609] New: [4.9 Regression] [c++11] ICE with uninitialized variable in constexpr reichelt at gcc dot gnu.org 2013-10-10 11:39 ` [Bug c++/58609] " rguenth at gcc dot gnu.org 2013-11-05 14:47 ` rguenth at gcc dot gnu.org 2014-02-03 10:36 ` paolo.carlini at oracle dot com 2014-03-07 18:34 ` paolo.carlini at oracle dot com 2014-03-07 18:34 ` paolo at gcc dot gnu.org
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).