re PR c++/35578 (Error about misplaced 'friend' word is issued on a wrong line)
authorVolker Reichelt <v.reichelt@netcologne.de>
Sun, 30 Mar 2008 22:02:06 +0000 (22:02 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sun, 30 Mar 2008 22:02:06 +0000 (22:02 +0000)
commitadcc62c7677c3bf0a81301d2103e87082a9d7cce
treea0ece1a81fc9101b0b87bf674ba81381a2d584a8
parent39ffbac9119e258b475386c959ff50af31a270b4
re PR c++/35578 (Error about misplaced 'friend' word is issued on a wrong line)

PR c++/35578
* parser.c (cp_parser_decl_specifier_seq): Add location to error
message.

* g++.dg/parse/friend8.C: New test.

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