[Bug c++/77949] [7 Regression] ICE on invalid code in internal compiler error: in linemap_position_for_loc_and_offset, at libcpp/line-map.c:907
aldyh at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 4 19:22:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77949
--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Caused by:
commit b65b8df248d4eb4801cbe16287cf32eda9325dec
Author: dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue Jul 5 15:50:54 2016 +0000
PR c++/62314: add fixit hint for "expected ';' after class definition"
gcc/cp/ChangeLog:
PR c++/62314
* parser.c (cp_parser_class_specifier_1): When reporting
missing semicolons, use a fixit-hint to suggest insertion
of a semicolon immediately after the closing brace,
offsetting the reported column accordingly.
gcc/testsuite/ChangeLog:
PR c++/62314
* gcc/testsuite/g++.dg/parse/error5.C: Update column
number of missing semicolon error.
* g++.dg/pr62314-2.C: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238008
138bc75d-0d04-0410-96
1f-82ee72b054a4
More information about the Gcc-bugs
mailing list