public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/46930] New: [C++0x] ICE with static constexpr data member @ 2010-12-13 21:24 paolo.carlini at oracle dot com 2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2010-12-13 21:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930 Summary: [C++0x] ICE with static constexpr data member Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: paolo.carlini@oracle.com Today was playing with this snippet inspired by an old constexpr paper: struct S { static constexpr int size; }; const int limit = 2 * S::size; constexpr int S::size = 256; u3.cc:5:26: internal compiler error: in decl_constant_var_p, at cp/decl2.c:3563 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46930] [C++0x] ICE with static constexpr data member 2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com @ 2010-12-13 21:24 ` paolo.carlini at oracle dot com 2010-12-15 0:35 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2010-12-13 21:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-12-13 21:24:22 UTC --- Jason, can you have a look? ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46930] [C++0x] ICE with static constexpr data member 2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com 2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com @ 2010-12-15 0:35 ` jason at gcc dot gnu.org 2010-12-15 6:03 ` paolo.carlini at oracle dot com 2010-12-15 6:05 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2010-12-15 0:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-15 00:35:20 UTC --- Author: jason Date: Wed Dec 15 00:35:17 2010 New Revision: 167834 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167834 Log: PR c++/46930 * decl.c (grokdeclarator): Reject uninitialized constexpr static data member. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-decl.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ex1.C trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-static5.C ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46930] [C++0x] ICE with static constexpr data member 2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com 2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com 2010-12-15 0:35 ` jason at gcc dot gnu.org @ 2010-12-15 6:03 ` paolo.carlini at oracle dot com 2010-12-15 6:05 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2010-12-15 6:03 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-12-15 06:03:45 UTC --- Many thanks! ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46930] [C++0x] ICE with static constexpr data member 2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com ` (2 preceding siblings ...) 2010-12-15 6:03 ` paolo.carlini at oracle dot com @ 2010-12-15 6:05 ` paolo.carlini at oracle dot com 3 siblings, 0 replies; 5+ messages in thread From: paolo.carlini at oracle dot com @ 2010-12-15 6:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46930 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.6.0 --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-12-15 06:05:21 UTC --- I think we can close it as fixed now ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-12-15 6:05 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-12-13 21:24 [Bug c++/46930] New: [C++0x] ICE with static constexpr data member paolo.carlini at oracle dot com 2010-12-13 21:24 ` [Bug c++/46930] " paolo.carlini at oracle dot com 2010-12-15 0:35 ` jason at gcc dot gnu.org 2010-12-15 6:03 ` paolo.carlini at oracle dot com 2010-12-15 6:05 ` 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).