This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28606] [4.0/4.1/4.2 regression] Destructor accepted as return-type of constructor
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2006 09:19:47 -0000
- Subject: [Bug c++/28606] [4.0/4.1/4.2 regression] Destructor accepted as return-type of constructor
- References: <bug-28606-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-08-17 09:19 -------
Subject: Bug 28606
Author: reichelt
Date: Thu Aug 17 09:19:27 2006
New Revision: 116219
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116219
Log:
PR c++/28606
* parser.c (cp_parser_diagnose_invalid_type_name): Handle BIT_NOT_EXPR.
Fix formatting.
(cp_parser_parse_and_diagnose_invalid_type_name): Tighten condition
for valid type-names.
(cp_parser_unqualified_id): Fix error handling for destructors.
* g++.dg/parse/dtor11.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/dtor11.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28606