This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60415] New: [4.9 regression] Bogus "invalid use of qualified-name"
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Mar 2014 17:01:34 +0000
- Subject: [Bug c++/60415] New: [4.9 regression] Bogus "invalid use of qualified-name"
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60415
Bug ID: 60415
Summary: [4.9 regression] Bogus "invalid use of qualified-name"
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
Assignee: jason at gcc dot gnu.org
Reporter: jason at gcc dot gnu.org
We should parse the line in main as an expression rather than an invalid
declaration.
namespace b {
enum type_t { warning };
}
struct d {
d(b::type_t) { }
int operator()() { return 0; }
};
int main()
{
d(b::warning)() + 1;
}