OSDN Git Service

PR c++/14360
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2004 02:06:18 +0000 (02:06 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2004 02:06:18 +0000 (02:06 +0000)
commit3ed122429beb8e696182aea1fd0aeeab439f6a8e
treef8b065afcbf7bbac4005023631dc51179db6ee71
parent3745d6a0e9b71a6a5895881cd04203a5ab737028
PR c++/14360
* parser.c (cp_parser_postfix_expression): Do not perform Koenig
lookup if ordinary name-lookup finds a non-function.
* pt.c (tsubst_copy_and_build): Likewise.

PR c++/14361
* parser.c (cp_parser_late_parsing_default_args): Check that there
are no extra tokens after the end of the default-argument
expression.

PR c++/14360
* g++.old-deja/g++.ns/koenig5.C: Remove some error markers.

PR c++/14361
* g++.dg/parse/defarg7.C: New test.

PR c++/14359
* g++.dg/template/friend26.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78739 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/defarg7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend26.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/koenig5.C