This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51463] [c++0x] [4.7 Regression] ICE declaring a member function virtual and static
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 Dec 2011 16:39:37 +0000
- Subject: [Bug c++/51463] [c++0x] [4.7 Regression] ICE declaring a member function virtual and static
- Auto-submitted: auto-generated
- References: <bug-51463-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51463
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-12-14
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-14 16:39:37 UTC ---
Created attachment 26084
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26084
gcc47-pr51463.patch
Untested fix. Not very happy about the patch, it is not very nice, but
we decide to parse the initializer as NSDMI resp. normal static initializer
already before grokdeclarator is called, have apparently no access to that
initializer in there and because of the errors decide to clear staticp (and
override storage_class to sc_none). So something that has been parsed as
static data member initializer is now used as NSDMI.