]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/parser.c
c-common.c (pointer_int_sum): Do not complain about using pointers to pointers-to...
authorMark Mitchell <mark@codesourcery.com>
Fri, 19 Mar 2004 01:35:01 +0000 (01:35 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 19 Mar 2004 01:35:01 +0000 (01:35 +0000)
commit9d363a56a8ff6587f8d32ea380b55fea77ea5f13
treeff8a9efb7d2b4a67b0c26125354dd012254824f4
parentc3690d79a8c861f10b77954379e03dd96807a409
c-common.c (pointer_int_sum): Do not complain about using pointers to pointers-to-members.

* c-common.c (pointer_int_sum): Do not complain about using
pointers to pointers-to-members.

* call.c (build_conditional_expr): Do not call force_rvalue for
operands of void_type when the conditional expression itself has
void type.
* name-lookup.c (pushdecl): Don't consider a declaration of a
function named "main" to be an overload of a type named "main".
* parser.c (cp_parser_template_name): Perform name lookup when the
template name is proceeded by "template" if the qualifying scope
is non-dependent.
* typeck.c (composite_pointer_type_r): Correctly handle
pointer-to-member types.
(build_const_cast): Likewise.

* g++.dg/expr/cond5.C: New test.
* g++.dg/expr/constcast1.C: Likewise.
* g++.dg/expr/ptrmem2.C: Likewise.
* g++.dg/expr/ptrmem3.C: Likewise.
* g++.dg/lookup/main1.C: Likewise.
* g++.dg/template/lookup6.C: Likewise.

From-SVN: r79663
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/name-lookup.c
gcc/cp/parser.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/main1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/lookup6.C [new file with mode: 0644]