This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/72803] [7 Regression] ICE on invalid code in linemap_position_for_loc_and_offset, at libcpp/line-map.c:891


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]