]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/28606 (Destructor accepted as return-type of constructor)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 17 Aug 2006 09:19:27 +0000 (09:19 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 17 Aug 2006 09:19:27 +0000 (09:19 +0000)
commit0a86d0a2bf7a1400e10a5d442d491796b5d4c5cb
tree4349688b4041297413a3c4603239b8f92065417a
parent843787510664dfa0ca304867d039851d6a6795ad
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: r116219
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/dtor11.C [new file with mode: 0644]