]> gcc.gnu.org Git - gcc.git/commit
re PR c++/28852 (ICE on invalid conversion operator)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Sat, 26 Aug 2006 00:25:59 +0000 (00:25 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sat, 26 Aug 2006 00:25:59 +0000 (00:25 +0000)
commit398cd19904a68a7f5b7c1a138d9f602f2165d579
tree74df540e6aa73f51e712e18ff456fede8456d1e6
parentb30409dacae526d29146a104aad8e51d4518d1a1
re PR c++/28852 (ICE on invalid conversion operator)

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.

From-SVN: r116463
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/operator1.C
gcc/testsuite/g++.dg/other/operator2.C [new file with mode: 0644]
This page took 0.05613 seconds and 5 git commands to generate.