[Bug c++/28852] [4.0/4.1/4.2 regression] ICE on invalid conversion operator
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Aug 26 00:28:00 GMT 2006
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-08-26 00:27 -------
Subject: Bug 28852
Author: reichelt
Date: Sat Aug 26 00:25:59 2006
New Revision: 116463
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116463
Log:
PR c++/28852
* cp-tree.h (grok_op_properties): Return bool instead of void.
* decl.c (grokfndecl): Discard invalid operator declarations.
(copy_fn_p): Revert change for PR 27547.
(grok_op_properties): Return error status (true on success).
* pt.c (tsubst_decl): Discard invalid operator declarations.
* g++.dg/other/operator1.C: Add error-marker.
* g++.dg/other/operator2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/operator2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/operator1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28852
More information about the Gcc-bugs
mailing list