re PR c++/28606 (Destructor accepted as return-type of constructor)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 17 Aug 2006 09:07:39 +0000 (09:07 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 17 Aug 2006 09:07:39 +0000 (09:07 +0000)
commit04499540e222f831f1ebc76c726701779001b8ee
tree0c190760dbae3e7281868aa5ab64276418b10d53
parent3f1e3e7010cf18ef218f107015b8f66fc75ed4d9
re PR c++/28606 (Destructor accepted as return-type of constructor)

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.

From-SVN: r116217
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/dtor11.C [new file with mode: 0644]