public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int @ 2011-04-20 20:17 roman at binarylife dot net 2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: roman at binarylife dot net @ 2011-04-20 20:17 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 Summary: [4.6/4.7 Regression] [c++0x] ICE initializing static const int Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: roman@binarylife.net Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu $ cat test.cc struct A { static int a(); }; template<typename X> struct B: A { static int const b; }; template<typename X> int const B<X>::b=B<X>::a(); $ g++ -c -std=c++0x test.cc test.cc:11:27: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net @ 2011-04-21 15:57 ` roman at binarylife dot net 2011-04-25 17:14 ` jason at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: roman at binarylife dot net @ 2011-04-21 15:57 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 --- Comment #1 from Roman Kononov <roman at binarylife dot net> 2011-04-21 15:57:12 UTC --- It is caused by -r170488. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net 2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net @ 2011-04-25 17:14 ` jason at gcc dot gnu.org 2011-04-25 21:53 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2011-04-25 17:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011.04.25 17:13:33 CC| |jason at gcc dot gnu.org AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net 2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net 2011-04-25 17:14 ` jason at gcc dot gnu.org @ 2011-04-25 21:53 ` jason at gcc dot gnu.org 2011-04-25 21:54 ` jason at gcc dot gnu.org 2011-04-25 21:55 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2011-04-25 21:53 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-25 21:51:36 UTC --- Author: jason Date: Mon Apr 25 21:51:33 2011 New Revision: 172941 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172941 Log: PR c++/48707 * decl.c (type_dependent_init_p): New. (cp_finish_decl): Check it. * pt.c (any_type_dependent_elements_p): New. * cp-tree.h: Declare it. Added: trunk/gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net ` (2 preceding siblings ...) 2011-04-25 21:53 ` jason at gcc dot gnu.org @ 2011-04-25 21:54 ` jason at gcc dot gnu.org 2011-04-25 21:55 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2011-04-25 21:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-25 21:54:04 UTC --- Author: jason Date: Mon Apr 25 21:53:57 2011 New Revision: 172942 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172942 Log: PR c++/48707 * pt.c (value_dependent_expression_p): Handle type-dependent expression. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/regress/template-const2.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/pt.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/48707] [4.6/4.7 Regression] [c++0x] ICE initializing static const int 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net ` (3 preceding siblings ...) 2011-04-25 21:54 ` jason at gcc dot gnu.org @ 2011-04-25 21:55 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2011-04-25 21:55 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48707 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.6.1 --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-25 21:54:31 UTC --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-04-25 21:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-04-20 20:17 [Bug c++/48707] New: [4.6/4.7 Regression] [c++0x] ICE initializing static const int roman at binarylife dot net 2011-04-21 15:57 ` [Bug c++/48707] " roman at binarylife dot net 2011-04-25 17:14 ` jason at gcc dot gnu.org 2011-04-25 21:53 ` jason at gcc dot gnu.org 2011-04-25 21:54 ` jason at gcc dot gnu.org 2011-04-25 21:55 ` jason 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).