PR c++/88757 - qualified name treated wrongly as type.
authorMarek Polacek <polacek@redhat.com>
Wed, 23 Jan 2019 17:25:42 +0000 (17:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 23 Jan 2019 17:25:42 +0000 (17:25 +0000)
commit4aab08286ae06a5567b75c85ab784cfe44355079
treedef2b98b57824fb355185520514370b3485c6791
parent6770fa53f9debd0cced4b1016c8e388512859ee3
PR c++/88757 - qualified name treated wrongly as type.

* parser.c (cp_parser_direct_declarator): don't treat qualified-ids
in parameter-list as types if name lookup for declarator-id didn't
find one or more function templates.

* g++.dg/cpp0x/dependent2.c: new test.
* g++.dg/cpp2a/typename10.c: remove dg-error.
* g++.dg/cpp2a/typename12.c: new test.
* g++.dg/template/static30.c: remove dg-error.

From-SVN: r268192
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/dependent2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/typename10.C
gcc/testsuite/g++.dg/cpp2a/typename12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/static30.C