public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression
@ 2004-03-01 9:11 schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:14 ` [Bug c++/14359] " schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: schmid at snake dot iap dot physik dot tu-darmstadt dot de @ 2004-03-01 9:11 UTC (permalink / raw)
To: gcc-bugs
While compiling the file boost/libs/random/random_test.cpp from the current
boost repository, gcc 3.4.0 crashes with an ice, whereas gcc 3.3 does not. I
guess this is a regression.
gcc 3.4.0
g++ -v -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -I"../bin/boost/
libs/random/test" -I "/home/peter/gnu/boost" -o "../bin/boost/libs/random/
test/random_demo.test/gcc/debug/random_demo.o" "/home/peter/gnu/boost/libs/
random/random_demo.cpp"
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc/configure --enable-threads=posix --enable-languages=c,c
++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.0 20040228 (prerelease)
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -I../bin/
boost/libs/random/test -I /home/peter/gnu/boost -D_GNU_SOURCE /home/peter/gnu/
boost/libs/random/random_demo.cpp -quiet -dumpbase random_demo.cpp
-mtune=pentiumpro -auxbase-strip ../bin/boost/libs/random/test/
random_demo.test/gcc/debug/random_demo.o -g -O0 -Wall -version
-ftemplate-depth-100 -fno-inline -o /tmp/cchWQVMM.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc/
i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
../bin/boost/libs/random/test
/home/peter/gnu/boost
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
i686-pc-linux-gnu
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward
/usr/local/include
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
GNU C++ version 3.4.0 20040228 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0 20040228 (prerelease).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
/home/peter/gnu/boost/boost/random/linear_congruential.hpp: In function
`std::basic_ostream<_CharT2, _Traits2>&
boost::random::operator<<(std::basic_ostream<_CharT2, _Traits2>&, const
boost::random::linear_congruential<IntType, a, c, m, val>&) [with CharT = char,
Traits = std::char_traits<char>, IntType = int32_t, IntType a = 48271, IntType
c = 0, IntType m = 2147483647, IntType val = 399268537]':
/home/peter/gnu/boost/libs/random/random_demo.cpp:127: instantiated from here
/home/peter/gnu/boost/boost/random/linear_congruential.hpp:124: internal
compiler error: in tsubst_copy, at cp/pt.c:7384
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gcc 3.3
/usr/bin/g++ -v -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -I"../
bin/boost/libs/random/test" -I "/home/peter/gnu/boost" -o "../bin/boost/libs/
random/test/random_demo.test/gcc/debug/random_demo.o" "/home/peter/gnu/boost/
libs/random/random_demo.cpp"
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/
man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada
--disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++
--with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit
i586-suse-linux
Thread model: posix
gcc version 3.3.1 (SuSE Linux)
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/cc1plus -quiet -v -I../bin/boost/libs/
random/test -I /home/peter/gnu/boost -D__GNUC__=3 -D__GNUC_MINOR__=3
-D__GNUC_PATCHLEVEL__=1 -D_GNU_SOURCE /home/peter/gnu/boost/libs/random/
random_demo.cpp -D__GNUG__=3 -quiet -dumpbase random_demo.cpp
-auxbase-strip ../bin/boost/libs/random/test/random_demo.test/gcc/debug/
random_demo.o -g -O0 -Wall -version -ftemplate-depth-100 -fno-inline -o /tmp/
ccABoIDO.s
GNU C++ version 3.3.1 (SuSE Linux) (i586-suse-linux)
compiled by GNU C version 3.3.1 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
#include "..." search starts here:
#include <...> search starts here:
../bin/boost/libs/random/test
/home/peter/gnu/boost
/usr/include/g++
/usr/include/g++/i586-suse-linux
/usr/include/g++/backward
/usr/local/include
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/include
/usr/i586-suse-linux/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../../i586-suse-linux/bin/as -V
-Qy -o ../bin/boost/libs/random/test/random_demo.test/gcc/debug/random_demo.o /
tmp/ccABoIDO.s
GNU assembler version 2.14.90.0.5 (i586-suse-linux) using BFD version
2.14.90.0.5 20030722 (SuSE Linux)
--
Summary: ice in tsubst_copy random_demo.cpp (boost) regression
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schmid at snake dot iap dot physik dot tu-darmstadt dot
de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: 686-pc-linux-gnu
GCC host triplet: 686-pc-linux-gnu
GCC target triplet: 686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] ice in tsubst_copy random_demo.cpp (boost) regression
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
@ 2004-03-01 9:14 ` schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:36 ` [Bug c++/14359] [3.4 Regression] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: schmid at snake dot iap dot physik dot tu-darmstadt dot de @ 2004-03-01 9:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schmid at snake dot iap dot physik dot tu-darmstadt dot de 2004-03-01 09:14 -------
Created an attachment (id=5827)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5827&action=view)
bzip2 compressed preprocessor source file random_demo.ii
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy random_demo.cpp (boost) regression
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:14 ` [Bug c++/14359] " schmid at snake dot iap dot physik dot tu-darmstadt dot de
@ 2004-03-01 9:36 ` pinskia at gcc dot gnu dot org
2004-03-01 9:41 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-01 9:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-01 09:36 -------
Well it compiles just fine on the mainline (3.5.0). I have not tested 3.4.0 yet.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to work| |3.5.0
Summary|ice in tsubst_copy |[3.4 Regression] ice in
|random_demo.cpp (boost) |tsubst_copy random_demo.cpp
|regression |(boost) regression
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy random_demo.cpp (boost) regression
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:14 ` [Bug c++/14359] " schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:36 ` [Bug c++/14359] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2004-03-01 9:41 ` pinskia at gcc dot gnu dot org
2004-03-01 14:36 ` [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-01 9:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-01 09:41 -------
Also note 3.4.0 20040116 works too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (2 preceding siblings ...)
2004-03-01 9:41 ` pinskia at gcc dot gnu dot org
@ 2004-03-01 14:36 ` reichelt at gcc dot gnu dot org
2004-03-01 15:01 ` giovannibajo at libero dot it
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-03-01 14:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-03-01 14:36 -------
Reduced testcase:
======================================================
template<typename> struct A {};
template<typename> struct B
{
template<typename T> friend void foo(const A<T>& a, const B&) { a; }
};
void bar()
{
A<void> a;
B<void> b;
foo(a,b);
}
======================================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2004-03-01 14:36:55
date| |
Summary|[3.4 Regression] ice in |[3.4 Regression] ice in
|tsubst_copy random_demo.cpp |tsubst_copy with template
|(boost) regression |friend
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (3 preceding siblings ...)
2004-03-01 14:36 ` [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend reichelt at gcc dot gnu dot org
@ 2004-03-01 15:01 ` giovannibajo at libero dot it
2004-03-01 15:18 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: giovannibajo at libero dot it @ 2004-03-01 15:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-03-01 15:01 -------
Volker, which version of GCC did you use to verify this bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (4 preceding siblings ...)
2004-03-01 15:01 ` giovannibajo at libero dot it
@ 2004-03-01 15:18 ` reichelt at gcc dot gnu dot org
2004-03-02 2:06 ` cvs-commit at gcc dot gnu dot org
2004-03-02 2:07 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-03-01 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-03-01 15:18 -------
I used 3.4.0-20040301. Mainline is not affected, but tree-ssa.
The regression seems to be caused by Marks's patch
http://gcc.gnu.org/ml/gcc-cvs/2004-02/msg00122.html
Mark, could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (5 preceding siblings ...)
2004-03-01 15:18 ` reichelt at gcc dot gnu dot org
@ 2004-03-02 2:06 ` cvs-commit at gcc dot gnu dot org
2004-03-02 2:07 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-02 2:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-02 02:06 -------
Subject: Bug 14359
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-03-02 02:06:18
Modified files:
gcc/cp : ChangeLog parser.c pt.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.old-deja/g++.ns: koenig5.C
Added files:
gcc/testsuite/g++.dg/parse: defarg7.C
gcc/testsuite/g++.dg/template: friend26.C
Log message:
PR c++/14360
* parser.c (cp_parser_postfix_expression): Do not perform Koenig
lookup if ordinary name-lookup finds a non-function.
* pt.c (tsubst_copy_and_build): Likewise.
PR c++/14361
* parser.c (cp_parser_late_parsing_default_args): Check that there
are no extra tokens after the end of the default-argument
expression.
PR c++/14360
* g++.old-deja/g++.ns/koenig5.C: Remove some error markers.
PR c++/14361
* g++.dg/parse/defarg7.C: New test.
PR c++/14359
* g++.dg/template/friend26.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3981&r2=1.3982
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.178&r2=1.179
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.834&r2=1.835
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3560&r2=1.3561
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/defarg7.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/friend26.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.ns/koenig5.C.diff?cvsroot=gcc&r1=1.3&r2=1.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (6 preceding siblings ...)
2004-03-02 2:06 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-02 2:07 ` mmitchel at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-02 2:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-02 02:07 -------
Fixed in GCC 3.4 and GCC 3.5.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14359
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-03-02 2:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-01 9:11 [Bug c++/14359] New: ice in tsubst_copy random_demo.cpp (boost) regression schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:14 ` [Bug c++/14359] " schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-01 9:36 ` [Bug c++/14359] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-03-01 9:41 ` pinskia at gcc dot gnu dot org
2004-03-01 14:36 ` [Bug c++/14359] [3.4 Regression] ice in tsubst_copy with template friend reichelt at gcc dot gnu dot org
2004-03-01 15:01 ` giovannibajo at libero dot it
2004-03-01 15:18 ` reichelt at gcc dot gnu dot org
2004-03-02 2:06 ` cvs-commit at gcc dot gnu dot org
2004-03-02 2:07 ` mmitchel at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).