public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
@ 2004-08-04  9:20 jens dot maurer at gmx dot net
  2004-08-04  9:21 ` [Bug c++/16870] " jens dot maurer at gmx dot net
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-08-04  9:20 UTC (permalink / raw)
  To: gcc-bugs

The attached program causes

gcc341_crash.cc:56:   instantiated from here
gcc341_crash.cc:34: internal compiler error: in tsubst, at cp/pt.c:6629

with gcc 3.4.1.

This works with gcc 3.3.3, so it appears to be a regression from 3.3.
I've also attached preprocessed source for both 3.4.1 and 3.3.3.

Jens Maurer

-- 
           Summary: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jens dot maurer at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
  2004-08-04  9:21 ` [Bug c++/16870] " jens dot maurer at gmx dot net
@ 2004-08-04  9:21 ` jens dot maurer at gmx dot net
  2004-08-04  9:22 ` jens dot maurer at gmx dot net
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-08-04  9:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jens dot maurer at gmx dot net  2004-08-04 09:21 -------
Created an attachment (id=6878)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6878&action=view)
Preprocessed source for gcc 3.3.3 (works)


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
@ 2004-08-04  9:21 ` jens dot maurer at gmx dot net
  2004-08-04  9:21 ` jens dot maurer at gmx dot net
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-08-04  9:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jens dot maurer at gmx dot net  2004-08-04 09:21 -------
Created an attachment (id=6877)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6877&action=view)
Program that crashes the compiler.


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
  2004-08-04  9:21 ` [Bug c++/16870] " jens dot maurer at gmx dot net
  2004-08-04  9:21 ` jens dot maurer at gmx dot net
@ 2004-08-04  9:22 ` jens dot maurer at gmx dot net
  2004-08-04  9:23 ` jens dot maurer at gmx dot net
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-08-04  9:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jens dot maurer at gmx dot net  2004-08-04 09:22 -------
Created an attachment (id=6879)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6879&action=view)
Preprocessed source for gcc 3.4.1 (crashes the compiler)


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (2 preceding siblings ...)
  2004-08-04  9:22 ` jens dot maurer at gmx dot net
@ 2004-08-04  9:23 ` jens dot maurer at gmx dot net
  2004-08-04  9:28 ` Jens dot Maurer at is-teledata dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jens dot maurer at gmx dot net @ 2004-08-04  9:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (3 preceding siblings ...)
  2004-08-04  9:23 ` jens dot maurer at gmx dot net
@ 2004-08-04  9:28 ` Jens dot Maurer at is-teledata dot com
  2004-08-04 12:17 ` [Bug c++/16870] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Jens dot Maurer at is-teledata dot com @ 2004-08-04  9:28 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Jens dot Maurer at is-
                   |                            |teledata dot com


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] [3.4/3.5 regression] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (4 preceding siblings ...)
  2004-08-04  9:28 ` Jens dot Maurer at is-teledata dot com
@ 2004-08-04 12:17 ` reichelt at gcc dot gnu dot org
  2004-08-11 22:41 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-04 12:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-08-04 12:16 -------
Confirmed. Here's a shorter example

===============================================
struct A
{
    int operator[](int) const;
};

template<int> A foo();

template<typename T> T bar(T(*)());

template<int> int baz() { return A(bar(&foo<0>))[0]; }

template int baz<0>();
===============================================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |monitored
      Known to fail|                            |3.4.0 3.4.1 3.5.0
      Known to work|                            |3.3.4
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-04 12:16:53
               date|                            |
            Summary|Boost.Spirit causes ICE in  |[3.4/3.5 regression]
                   |tsubst, at cp/pt.c:6629     |Boost.Spirit causes ICE in
                   |                            |tsubst, at cp/pt.c:6629
   Target Milestone|---                         |3.4.2


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] [3.4/3.5 regression] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (5 preceding siblings ...)
  2004-08-04 12:17 ` [Bug c++/16870] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
@ 2004-08-11 22:41 ` mmitchel at gcc dot gnu dot org
  2004-08-12  0:34 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-11 22:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] [3.4/3.5 regression] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (6 preceding siblings ...)
  2004-08-11 22:41 ` mmitchel at gcc dot gnu dot org
@ 2004-08-12  0:34 ` cvs-commit at gcc dot gnu dot org
  2004-08-12  0:43 ` cvs-commit at gcc dot gnu dot org
  2004-08-12  0:52 ` mmitchel at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-12  0:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-12 00:34 -------
Subject: Bug 16870

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2004-08-12 00:34:33

Modified files:
	gcc            : ChangeLog 
	gcc/cp         : ChangeLog call.c pt.c 
	gcc/ginclude   : stddef.h 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/init: ptrmem1.C 
	gcc/testsuite/g++.dg/parse: offsetof5.C 
	gcc/testsuite/g++.dg/template: overload3.C 

Log message:
	PR c++/16618
	* ginclude/stddef.h (offsetof): Refine C++ definition.
	
	PR c++/16853
	* call.c (standard_conversion): Do not accept conversions between
	pointers to members if the class types are unrelated.
	
	PR c++/16870
	* pt.c (tsubst): Just return the unknown_type_node.
	
	PR c++/16853
	* g++.dg/init/ptrmem1.C: New test.
	
	PR c++/16618
	* g++.dg/parse/offsetof5.C: New test.
	
	PR c++/16870
	* g++.dg/template/overload3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.578&r2=2.2326.2.579
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.141&r2=1.3892.2.142
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.452.2.20&r2=1.452.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.37&r2=1.816.2.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ginclude/stddef.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.20&r2=1.20.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.244&r2=1.3389.2.245
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ptrmem1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/offsetof5.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/overload3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] [3.4/3.5 regression] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (7 preceding siblings ...)
  2004-08-12  0:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-12  0:43 ` cvs-commit at gcc dot gnu dot org
  2004-08-12  0:52 ` mmitchel at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-12  0:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-12 00:43 -------
Subject: Bug 16870

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-08-12 00:43:47

Modified files:
	gcc/cp         : ChangeLog call.c parser.c pt.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/init: ptrmem1.C 
	gcc/testsuite/g++.dg/parse: offsetof5.C 
	gcc/testsuite/g++.dg/template: overload3.C 

Log message:
	PR c++/16853
	* call.c (standard_conversion): Do not accept conversions between
	pointers to members if the class types are unrelated.
	
	PR c++/16618
	* parser.c (cp_parser_builtin_offsetof): Cast to "const volatile
	char &" instead of just "char &".
	
	PR c++/16870
	* pt.c (tsubst): Just return the unknown_type_node.
	
	PR c++/16853
	* g++.dg/init/ptrmem1.C: New test.
	
	PR c++/16618
	* g++.dg/parse/offsetof5.C: New test.
	
	PR c++/16870
	* g++.dg/template/overload3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4270&r2=1.4271
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.498&r2=1.499
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.234&r2=1.235
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.902&r2=1.903
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4119&r2=1.4120
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/ptrmem1.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/offsetof5.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/overload3.C.diff?cvsroot=gcc&r1=1.1&r2=1.2



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/16870] [3.4/3.5 regression] Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629
  2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
                   ` (8 preceding siblings ...)
  2004-08-12  0:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-12  0:52 ` mmitchel at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-12  0:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-12 00:52 -------
GCC 3.4.2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-12  0:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04  9:20 [Bug c++/16870] New: Boost.Spirit causes ICE in tsubst, at cp/pt.c:6629 jens dot maurer at gmx dot net
2004-08-04  9:21 ` [Bug c++/16870] " jens dot maurer at gmx dot net
2004-08-04  9:21 ` jens dot maurer at gmx dot net
2004-08-04  9:22 ` jens dot maurer at gmx dot net
2004-08-04  9:23 ` jens dot maurer at gmx dot net
2004-08-04  9:28 ` Jens dot Maurer at is-teledata dot com
2004-08-04 12:17 ` [Bug c++/16870] [3.4/3.5 regression] " reichelt at gcc dot gnu dot org
2004-08-11 22:41 ` mmitchel at gcc dot gnu dot org
2004-08-12  0:34 ` cvs-commit at gcc dot gnu dot org
2004-08-12  0:43 ` cvs-commit at gcc dot gnu dot org
2004-08-12  0:52 ` 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).