public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail. @ 2011-01-24 23:05 drahflow at gmx dot de 2012-01-06 0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: drahflow at gmx dot de @ 2011-01-24 23:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 Summary: Anonymous top-level classes assigned to static members fail. Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: drahflow@gmx.de class A { public: virtual void f() = 0; }; class B { static A *a; }; A *B::a = new (class: public A { public: void f() { } }); results in 01.c++:10:32: internal compiler error: in nested_anon_class_index, at cp/mangle.c:1294 g++-4.4 accepts the code on my system. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail. 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de @ 2012-01-06 0:12 ` pinskia at gcc dot gnu.org 2012-01-06 18:46 ` jakub at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2012-01-06 0:12 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.4.6 Keywords| |ice-on-valid-code Last reconfirmed| |2012-01-06 Ever Confirmed|0 |1 Summary|Anonymous top-level classes |[4.5/4.6/4.7 Regression] |assigned to static members |Anonymous top-level classes |fail. |assigned to static members | |fail. Target Milestone|--- |4.4.7 Known to fail| |4.5.0, 4.6.0, 4.7.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-06 00:12:01 UTC --- Confirmed. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail. 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de 2012-01-06 0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org @ 2012-01-06 18:46 ` jakub at gcc dot gnu.org 2012-01-06 22:57 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2012-01-06 18:46 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-06 18:45:57 UTC --- Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152429 . ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail. 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de 2012-01-06 0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org 2012-01-06 18:46 ` jakub at gcc dot gnu.org @ 2012-01-06 22:57 ` jason at gcc dot gnu.org 2012-01-06 23:19 ` jason at gcc dot gnu.org 2012-01-06 23:26 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2012-01-06 22:57 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org | --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 22:57:01 UTC --- This is not valid code. The wording prohibiting a class-specifier in a type-id was unclear in C++03, but was clarified by DR 686: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#686 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail. 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de ` (2 preceding siblings ...) 2012-01-06 22:57 ` jason at gcc dot gnu.org @ 2012-01-06 23:19 ` jason at gcc dot gnu.org 2012-01-06 23:26 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2012-01-06 23:19 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 23:19:14 UTC --- Author: jason Date: Fri Jan 6 23:19:05 2012 New Revision: 182975 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182975 Log: DR 686 PR c++/47450 * parser.c (cp_parser_new_expression): Set type_definition_forbidden_message. Added: trunk/gcc/testsuite/g++.dg/parse/new5.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail. 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de ` (3 preceding siblings ...) 2012-01-06 23:19 ` jason at gcc dot gnu.org @ 2012-01-06 23:26 ` jason at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jason at gcc dot gnu.org @ 2012-01-06 23:26 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Known to work| |4.7.0 Resolution| |FIXED Target Milestone|4.4.7 |4.7.0 Known to fail|4.7.0 | --- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 23:25:43 UTC --- 4.7.0 will give an error about this case. I don't think we should backport the fix. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-06 23:26 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-01-24 23:05 [Bug c++/47450] New: Anonymous top-level classes assigned to static members fail drahflow at gmx dot de 2012-01-06 0:12 ` [Bug c++/47450] [4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org 2012-01-06 18:46 ` jakub at gcc dot gnu.org 2012-01-06 22:57 ` jason at gcc dot gnu.org 2012-01-06 23:19 ` jason at gcc dot gnu.org 2012-01-06 23:26 ` 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).