This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60415] New: [4.9 regression] Bogus "invalid use of qualified-name"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]