This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28260] ICE with incompatible friend declaration
- From: "lmillward at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2006 17:22:47 -0000
- Subject: [Bug c++/28260] ICE with incompatible friend declaration
- References: <bug-28260-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from lmillward at gcc dot gnu dot org 2006-07-18 17:22 -------
Subject: Bug 28260
Author: lmillward
Date: Tue Jul 18 17:22:39 2006
New Revision: 115561
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115561
Log:
PR c++/28258
* method.c (locate_copy): Check for non_reference
returning error_mark_node.
PR c++/28260
* decl.c (duplicate_decls): Return error_mark_node
on ambiguous declaration.
PR c++/28258
* g++/dg/other/error13.C: New test.
PR c++/28260
* g++.dg/template/friend44.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/error13.C
trunk/gcc/testsuite/g++.dg/template/friend44.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28260