public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59210] New: decltype incorrectly accepted as non-first element of nested-name-specifier
@ 2013-11-20 12:22 jhs at edg dot com
2013-11-20 13:11 ` [Bug c++/59210] " redi at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jhs at edg dot com @ 2013-11-20 12:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59210
Bug ID: 59210
Summary: decltype incorrectly accepted as non-first element of
nested-name-specifier
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jhs at edg dot com
The grammar for nested-name-specifier only allows decltype to be the first
component of the name, so A::decltype should not be accepted.
struct A {
struct B { int i; };
B b;
};
int main() {
A a;
a.b.A::decltype(a.b)::i;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/59210] decltype incorrectly accepted as non-first element of nested-name-specifier
2013-11-20 12:22 [Bug c++/59210] New: decltype incorrectly accepted as non-first element of nested-name-specifier jhs at edg dot com
@ 2013-11-20 13:11 ` redi at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2013-11-20 13:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59210
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-11-20
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-20 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20 12:22 [Bug c++/59210] New: decltype incorrectly accepted as non-first element of nested-name-specifier jhs at edg dot com
2013-11-20 13:11 ` [Bug c++/59210] " redi 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).