OSDN Git Service

PR c++/13113
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2004 16:53:17 +0000 (16:53 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 Feb 2004 16:53:17 +0000 (16:53 +0000)
commitb3beaf308cf55b47f92872c7d38199dd0c24951a
tree18f97563be8180b80b8d845bab5a84a1cb6453c4
parentd703063cfa6d2fc9bf048b965fb9abb8065cabad
PR c++/13113
* init.c (build_offset_ref): Improve error recovery for invalid
uses of non-static member functions.

PR c++/13854
* cp-tree.h (cp_build_type_attribute_variant): New function.
* class.c (build_clone): Use cp_build_type_attribute_variant.
* decl.c (duplicate_decls): Likewise.
* pt.c (copy_default_args_to_explicit_spec): Likewise.
(tsubst_function_type): Likewise.
* tree.c (build_exception_variant): Check attributes before
concluding that two types are the same.
(cp_build_type-attribute_variant): New method.
* typeck.c (merge_types): Use cp_build_type_attribute_variant.

PR c++/13907
* call.c (convert_class_to_reference): Keep better track of
pedantically invalid user-defined conversions.

PR c++/13113
* g++.old-deja/g++.mike/net36.C: Adjust error messages.

PR c++/13854
* g++.dg/ext/attrib13.C: New test.

PR c++/13907
* g++.dg/conversion/op2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77127 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/op2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/attrib13.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.mike/net36.C