]> git.ipfire.org Git - thirdparty/gcc.git/commit
class.c (handle_using_decl): Reject using of constructor name of sourcing class.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 9 Jan 2001 11:37:07 +0000 (11:37 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 9 Jan 2001 11:37:07 +0000 (11:37 +0000)
commit186c0fbe03c0b420d7164796a7e19688f1fa0ceb
treee130c908745dc3ab0bc23e553a26fbe7056fcfea
parent10a855c7f4b3347a55198395ff12f8847f0c33c6
class.c (handle_using_decl): Reject using of constructor name of sourcing class.

cp:
* class.c (handle_using_decl): Reject using of constructor name
of sourcing class. Allow injecting of a method with same name as
nested class. Fixup error messages.
testsuite:
* g++.old_deja/g++.pt/using8.C: New test.

From-SVN: r38831
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/using8.C [new file with mode: 0644]