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++/66067] [6 Regression] tree check ICE: accessed elt 1 of tree_vec with 0 elts in write_template_args, at cp/mangle.c:2574


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66067

--- Comment #8 from James Almer <jamrial at gmail dot com> ---
(In reply to James Almer from comment #7)
> (In reply to Markus Trippelsdorf from comment #6)
> > (In reply to James Almer from comment #5)
> > > Created attachment 35683 [details]
> > > Preprocessed source as generated by -freport-bug, third test case, gcc 5.1.1
> > > svn 223417
> > > 
> > > How about this one? Crashes with segmentation fault on gcc 5.1.1 
> > > (ArchLinux x86_64).
> > > 
> > > With gcc 6.0.0 svn 223906 it crashes with apparently the same tree_check ICE
> > > as the first test case.
> > > I can post that -freport-bug output if needed.
> > 
> > I'm using "gcc version 5.1.1 20150519".
> > Will recheck with an updated version tomorrow.
> 
> That's the one that crashed for me with this new test case. svn 223417 (used
> for the 20150519 weekly snapshot).

Looks like a heisenbug. Can't reproduce it when i use the preprocessed output
created by -freport-bug, only when i try to normally compile the file.

If the same happens in your end, you could try (with gcc 5.1.1):

git clone https://github.com/ericniebler/range-v3.git
cd range-v3 && mkdir build && cd build
cmake .. && make alg.partial_sort_copy


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