]> gcc.gnu.org Git - gcc.git/commit
re PR c++/17401 (ICE with invalid pure specifier)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 3 Feb 2005 10:26:22 +0000 (10:26 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 3 Feb 2005 10:26:22 +0000 (10:26 +0000)
commit515e6a84cd464581711a5aa5fe51342a57ff2095
tree983d0094d83cbea096c2fd0c40e4d3de7dd54f48
parentaa2d0bc31c2dac0ecde72d92d7d419be5a8f21b3
re PR c++/17401 (ICE with invalid pure specifier)

PR c++/17401
* parser.c (cp_parser_pure_specifier): Emit a specific error
message with an invalid pure specifier.
* decl2.c (grok_function_init): Remove.
(grokfield): An initializer for a method is a always a pure
specifier.

PR c++/17401
* g++.dg/parse/error25.C: New test.

From-SVN: r94656
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error25.C [new file with mode: 0644]
This page took 0.063153 seconds and 5 git commands to generate.