http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

            Bug ID: 59436
           Summary: FAIL: 17_intro/headers/c++200x/stdc++.cc (test for
                    excess errors)
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

Created attachment 31403
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31403&action=edit
Preprocessed source

Attached testcase randomly fails to compile. Following valgrind error was
obtained on x86_64-pc-linux-gnu:

$ valgrind /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x -fpreprocessed
-quiet stdc++.ii 
==10906== Memcheck, a memory error detector
==10906== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==10906== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==10906== Command: /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x
-fpreprocessed -quiet stdc++.ii
==10906== 
==10906== Invalid read of size 2
==10906==    at 0x87F8FB: rtl_for_decl_init(tree_node*, tree_node*)
(dwarf2out.c:15183)
==10906==    by 0x88F2F1: tree_add_const_value_attribute(die_struct*,
tree_node*) (dwarf2out.c:15814)
==10906==    by 0x8944B4: gen_variable_die(tree_node*, tree_node*, die_struct*)
(dwarf2out.c:18769)
==10906==    by 0x896319: gen_decl_die(tree_node*, tree_node*, die_struct*)
(dwarf2out.c:20403)
==10906==    by 0x89C2AC: declare_in_namespace(tree_node*, die_struct*)
(dwarf2out.c:20179)
==10906==    by 0x8962F1: gen_decl_die(tree_node*, tree_node*, die_struct*)
(dwarf2out.c:20390)
==10906==    by 0xB4952C: emit_debug_global_declarations(tree_node**, int)
(toplev.c:532)
==10906==    by 0x5607B0: wrapup_globals_for_namespace(tree_node*, void*)
(decl.c:883)
==10906==    by 0x55D81B: walk_namespaces_r(tree_node*, int (*)(tree_node*,
void*), void*) (decl.c:850)
==10906==    by 0x55D835: walk_namespaces_r(tree_node*, int (*)(tree_node*,
void*), void*) (decl.c:853)
==10906==    by 0x62C81F: cp_write_global_declarations() (decl2.c:4448)
==10906==    by 0xB4876C: compile_file() (toplev.c:561)
==10906==  Address 0x101 is not stack'd, malloc'd or (recently) free'd
==10906== 
In file included from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/complex.h:36:0,
                 from
/home/uros/gcc-svn/trunk/libstdc++-v3/testsuite/17_intro/headers/c++200x/stdc++.cc:30:
/usr/include/complex.h:112:1: internal compiler error: Segmentation fault
 __END_DECLS
 ^
Please submit a full bug report,
...

Reply via email to