https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101783

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC 4.4 and earlier didn't accept it with the typename there:

101783.C:8: error: using 'typename' outside of template
101783.C:8: error: 'const' qualifiers cannot be applied to 'B&'


The typename started to be accepted with r0-94634

    re PR c++/22154 ([DR 382] qualified names should allow typename keyword in
front of it (even in non-templates))

    2009-07-13  Andrew Pinski

            PR C++/22154
            * parser.c (cp_parser_elaborated_type_specifier): Accept typename
in
            front of qualified names.

    2009-07-13  Andrew Pinski  <andrew_pin...@playstation.sony.com>

            PR C++/22154
            * g++.old-deja/g++.pt/typename10.C: Update for DR 382, typename in
            front of qualified names are allowed.
            * g++.dg/parse/crash10.C: Likewise.
            * g++.dg/parse/error15.C: Likewise.
            * g++.dg/parse/typename9.C: Likewise.
            * g++.dg/parse/error8.C: Likewise.

    From-SVN: r149590

Reply via email to