Don't allow template-id in using-declaration.
authorGabriel Dos Reis <gdr@merlin.codesourcery.com>
Mon, 6 Aug 2001 16:04:08 +0000 (16:04 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Mon, 6 Aug 2001 16:04:08 +0000 (16:04 +0000)
commiteac69b8a008bd5426d3410d624aa9d88577fd69f
tree1993644e70dfb92ec05b33c858202615ffdf6f75
parent4f2b1139461bb4ac0a310807cdf07358f20a4b0e
Don't allow template-id in using-declaration.

cp/
       Don't allow template-id in using-declaration.
       * decl2.c (validate_nonmember_using_decl): Handle template-ids.
       (do_class_using_decl): Likewise.

testsuite/
       * g++.dg/other/using-declaration.C: New test.

From-SVN: r44663
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/using-declaration.C [new file with mode: 0644]