public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60415] New: [4.9 regression] Bogus "invalid use of qualified-name"
@ 2014-03-04 17:01 jason at gcc dot gnu.org
  2014-03-04 17:02 ` [Bug c++/60415] " jason at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2014-03-04 17:01 UTC (permalink / raw)
  To: gcc-bugs

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;
}


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-05  7:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 17:01 [Bug c++/60415] New: [4.9 regression] Bogus "invalid use of qualified-name" jason at gcc dot gnu.org
2014-03-04 17:02 ` [Bug c++/60415] " jason at gcc dot gnu.org
2014-03-04 17:06 ` redi at gcc dot gnu.org
2014-03-04 22:16 ` jason at gcc dot gnu.org
2014-03-05  7:16 ` jakub 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).