https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69778
Bug ID: 69778 Summary: Bogus "qualifiers cannot be applied" error with redundant (but legal) 'typename' Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rs2740 at gmail dot com Target Milestone: --- Modified repro from http://stackoverflow.com/q/35352168/2756719: struct A { typedef int& reference; }; void f(const A::reference); // OK void g(const typename A::reference); // error: 'const' qualifiers cannot be // applied to 'A::reference {aka int&}'