[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-16 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 Status|REOPENED|NEW

--- Comment #8 from H.J. Lu hjl.tools at gmail dot com ---
On Linux/x86, I got

spawn -ignore SIGHUP /export/gnu/import/git/gcc-test-ia32corei7/bld/./gcc/xg++
-shared-libgcc -B/export/gnu/import/git/gcc-test-ia32corei7/bld/./gcc
-nostdinc++
-L/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/src
-L/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/src/.libs
-L/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/libsupc++/.libs
-B/usr/4.9.0/i686-linux/bin/ -B/usr/4.9.0/i686-linux/lib/ -isystem
/usr/4.9.0/i686-linux/include -isystem /usr/4.9.0/i686-linux/sys-include
-B/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/./libstdc++-v3/src/.libs
-fdiagnostics-color=never -D_GLIBCXX_ASSERT -fmessage-length=0
-ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -g -O2 -D_GNU_SOURCE
-DLOCALEDIR=. -nostdinc++
-I/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/include/i686-linux
-I/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/include
-I/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/libstdc++-v3/libsupc++
-I/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/libstdc++-v3/include/backward
-I/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/libstdc++-v3/testsuite/util
/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/libstdc++-v3/testsuite/17_intro/headers/c++200x/stdc++.cc
-std=gnu++0x -S -o stdc++.s^M
In file included from /usr/include/features.h:375:0,^M
 from /usr/include/assert.h:36,^M
 from
/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/libstdc++-v3/include/cassert:43,^M
 from
/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/libstdc++-v3/include/precompiled/stdc++.h:33:^M
/usr/include/complex.h:112:1: internal compiler error: tree check: expected
tree_vec, have error_mark in get_innermost_template_args, at cp/pt.c:581^M
 __END_DECLS^M
 ^^M
0x8938b68 tree_check_failed(tree_node const*, char const*, int, char const*,
...)^M
../../src-trunk/gcc/tree.c:9192^M
0x81a83b2 tree_check^M
../../src-trunk/gcc/tree.h:2707^M
0x81a83b2 get_innermost_template_args(tree_node*, int)^M
../../src-trunk/gcc/cp/pt.c:581^M
0x81aab84 get_template_innermost_arguments(tree_node const*)^M
../../src-trunk/gcc/cp/pt.c:3044^M
0x8155e7b get_template_innermost_arguments_folded^M
../../src-trunk/gcc/cp/cp-lang.c:213^M
0x847cf6d gen_generic_params_dies^M
../../src-trunk/gcc/dwarf2out.c:10546^M
0x8499dc8 gen_scheduled_generic_parms_dies^M
../../src-trunk/gcc/dwarf2out.c:20999^M
0x8499dc8 dwarf2out_finish^M
../../src-trunk/gcc/dwarf2out.c:23914^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
Please include the complete backtrace with any bug report.^M
See http://gcc.gnu.org/bugs.html for instructions.^M


[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-16 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

--- Comment #9 from Jakub Jelinek jakub at gcc dot gnu.org ---
Note this must be PCH related, can't reproduce it without PCH even with --param
ggc-min-expand=0 --param ggc-min-heapsize=0.
Unfortunately I only reproduce it two i686 builds ago and don't remember the
exact revision and what patches I had applied back then, so all I can see is
that in the PCH file there is some TEMPLATE_DECL with it's
decl_non_common.arguments set to error_mark_node when it ought to be TREE_LIST.
So, if somebody can reproduce it right now with their current tree, it would be
nice to debug where during PCH writing the bad value was stored and if it came
from already by that time bogus TEMPLATE_DECL, or if it got broken during the
PCH writing.


[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-13 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

Uroš Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
   Last reconfirmed||2013-12-13
 Resolution|DUPLICATE   |---
 Ever confirmed|0   |1

--- Comment #7 from Uroš Bizjak ubizjak at gmail dot com ---
These failures are still present on i686-pc-linux-gnu [1], rev 205955:

Running target unix
FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)
FAIL: 17_intro/headers/c++200x/stdc++_multiple_inclusion.cc (test for excess
errors)


[1] http://gcc.gnu.org/ml/gcc-testresults/2013-12/msg01213.html

[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-12 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

Bug 59436 depends on bug 58627, which changed state.

Bug 58627 Summary: [4.9 Regression] crash during compilation of boost testsuite
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58627

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED


[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

--- Comment #1 from Uroš Bizjak ubizjak at gmail dot com ---
On a related note, without -std=gnu++0x:

$ /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -fpreprocessed -quiet stdc++.ii 
In file included from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_pair.h:59:0,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_algobase.h:64,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/char_traits.h:39,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ios:40,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream:38,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/sstream:38,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/complex:45,
 from
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/ccomplex:38,
 from
/home/uros/gcc-svn/trunk/libstdc++-v3/include/precompiled/stdc++.h:52:
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/move.h:
In instantiation of ‘void std::swap(_Tp, _Tp) [with _Tp = std::thread::id]’:
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/thread:158:33:
  required from here
/ssd/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/move.h:176:11:
internal compiler error: in type_has_trivial_fn, at cp/method.c:435
   __a = _GLIBCXX_MOVE(__b);
   ^
0x6b2763 type_has_trivial_fn
/home/uros/gcc-svn/trunk/gcc/cp/method.c:435
0x557321 build_over_call
/home/uros/gcc-svn/trunk/gcc/cp/call.c:7050
0x55cd6c build_new_op_1
/home/uros/gcc-svn/trunk/gcc/cp/call.c:5355
0x55d217 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
/home/uros/gcc-svn/trunk/gcc/cp/call.c:5516
0x695922 cp_build_modify_expr(tree_node*, tree_code, tree_node*, int)
/home/uros/gcc-svn/trunk/gcc/cp/typeck.c:7339

(Probably ICE on ivalid in this case).

[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

--- Comment #2 from Uroš Bizjak ubizjak at gmail dot com ---
(In reply to Uroš Bizjak from comment #0)
 Created attachment 31403 [details]
 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)

(gdb) r
Starting program: /ssd/uros/gcc-build/gcc/cc1plus -g -O2 -std=gnu++0x
-fpreprocessed -quiet stdc++.ii

Program received signal SIGSEGV, Segmentation fault.
0x0087f8fb in rtl_for_decl_init (init=init@entry=0x100139a078,
type=type@entry=0x101) at /home/uros/gcc-svn/trunk/gcc/dwarf2out.c:15183
15183 if (TREE_CODE (init) == STRING_CST  TREE_CODE (type) == ARRAY_TYPE)

(gdb) p init
$1 = (tree) 0x100139a078
(gdb) p type
$2 = (tree_node *) 0x101
(gdb)

[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

--- Comment #3 from Uroš Bizjak ubizjak at gmail dot com ---
(In reply to Uroš Bizjak from comment #2)

 (gdb) p init
 $1 = (tree) 0x100139a078
 (gdb) p type
 $2 = (tree_node *) 0x101
 (gdb)

FAIL: 17_intro/headers/c++200x/stdc++_multiple_inclusion.cc (test for excess
errors)

fails in the same way.

[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

Jakub Jelinek jakub at gcc dot gnu.org changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org ---
Isn't this related to PR58627 ?
Try commenting out the ggc_free in there?


[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

Uroš Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

 Depends on||58627

--- Comment #5 from Uroš Bizjak ubizjak at gmail dot com ---
(In reply to Jakub Jelinek from comment #4)
 Isn't this related to PR58627 ?
 Try commenting out the ggc_free in there?

Yes, both tests compile OK by removing mentioned gcc_free.

[Bug libstdc++/59436] FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)

2013-12-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59436

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #6 from Paolo Carlini paolo.carlini at oracle dot com ---
Dup.

*** This bug has been marked as a duplicate of bug 58627 ***