Summary: | [C++0x] Name lookup error at enum class | ||
---|---|---|---|
Product: | gcc | Reporter: | Takeshi Watanabe <takechi101010> |
Component: | c++ | Assignee: | Jason Merrill <jason> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | jason |
Priority: | P3 | Keywords: | ice-on-invalid-code |
Version: | 4.6.0 | ||
Target Milestone: | 4.6.1 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2011-05-09 14:30:51 | |
Attachments: | code |
Description
Takeshi Watanabe
2011-05-09 14:01:18 UTC
Created attachment 24212 [details]
code
reduced: enum class ENUM { a }; ENUM::Type func() { return ENUM::a; } possibly related to PR 43509 Author: jason Date: Wed May 25 14:35:17 2011 New Revision: 174205 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174205 Log: PR c++/48935 * parser.c (cp_parser_constructor_declarator_p): Don't check constructor_name_p for enums. (cp_parser_diagnose_invalid_type_name): Correct error message. Added: trunk/gcc/testsuite/g++.dg/cpp0x/enum16.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/parse/error15.C Author: jason Date: Wed May 25 15:26:42 2011 New Revision: 174210 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174210 Log: PR c++/48935 * parser.c (cp_parser_constructor_declarator_p): Don't check constructor_name_p for enums. (cp_parser_diagnose_invalid_type_name): Correct error message. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum16.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/parser.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/error15.C Fixed for 4.6.1. |