This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72803] [7 Regression] ICE on invalid code in linemap_position_for_loc_and_offset, at libcpp/line-map.c:891
- From: "aldyh at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Nov 2016 16:24:32 +0000
- Subject: [Bug c++/72803] [7 Regression] ICE on invalid code in linemap_position_for_loc_and_offset, at libcpp/line-map.c:891
- Auto-submitted: auto-generated
- References: <bug-72803-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72803
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2016-11-04
CC| |aldyh at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
I cannot reproduce on mainline. I just get a compile error, not an ICE:
reynosa:/build/t$ cat /tmp/a.cc
template class basic_string { typedef typename
__gnu_cxx__alloc_traitstemplate rebindother _Char_alloc_type public
static const int npos = static_cast private
template class num_get public localefacet template localeid
num_putid ; ; ; ; ; ;
; ; ; ; ; ; ; }
# 1 "" 1
reynosa:/build/t$ ./install/bin/g++ -c /tmp/a.cc
/tmp/a.cc:1:63: error: expected nested-name-specifier before
‘__gnu_cxx__alloc_traitstemplate’
template class basic_string { typedef typename
__gnu_cxx__alloc_traitstemplate rebindother _Char_alloc_type public
static const int npos = static_cast private
template class num_get public localefacet template localeid
num_putid ; ; ; ; ; ;
; ; ; ; ; ; ; }
etc
etc
etc
Is this still reproducible on mainline, or can we close it?