public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081
@ 2004-07-19  1:24 gcc-bugzilla at gcc dot gnu dot org
  2004-07-19  1:30 ` [Bug c++/16623] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-07-19  1:24 UTC (permalink / raw)
  To: gcc-bugs



g++ mainline crashes on the example below:

$ g++  -c  x.cc
x.cc: In instantiation of `C<0>':
x.cc:13:   instantiated from here
x.cc:3: internal compiler error: in tsubst_decl, at cp/pt.c:6081
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$

Environment:
System: Linux karma 2.6.7 #18 Wed Jul 14 03:27:01 EDT 2004 i686 i686 i386 GNU/Linux
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95

How-To-Repeat:

Compile the following:

----------------------------------------
template <int N>
struct C
{
  C& operator= (int);
};

template <int N>
C<N>& C<N>::operator= (int)
{
  return *this;
}

C<0> a;
----------------------------------------
------- Additional Comments From snyder at fnal dot gov  2004-07-19 01:24 -------
Fix:
	<how to correct or work around the problem, if known (multiple lines)>

-- 
           Summary: [3.5] g++ ICE in tsubst_decl:6081
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snyder at fnal dot gov
                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=16623


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
@ 2004-07-19  1:30 ` pinskia at gcc dot gnu dot org
  2004-07-19  4:08 ` mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-19  1:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-19 01:30 -------
Confirmed
: Search converges between 2004-07-14-trunk (#486) and 2004-07-16-trunk (#487).


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-19 01:30:44
               date|                            |
            Summary|[3.5] g++ ICE in            |[3.5 Regression] g++ ICE in
                   |tsubst_decl:6081            |tsubst_decl:6081
   Target Milestone|---                         |3.5.0


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
  2004-07-19  1:30 ` [Bug c++/16623] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-07-19  4:08 ` mmitchel at gcc dot gnu dot org
  2004-07-19 19:28 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-07-19  4:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-07-19 04:08 -------
This is caused by my lazy assignment operator patch; working on a fix.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|mmitchel at gcc dot gnu dot |
                   |org                         |
         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=16623


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
  2004-07-19  1:30 ` [Bug c++/16623] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-07-19  4:08 ` mmitchel at gcc dot gnu dot org
@ 2004-07-19 19:28 ` cvs-commit at gcc dot gnu dot org
  2004-07-19 19:33 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-19 19:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-19 19:28 -------
Subject: Bug 16623

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-07-19 19:28:10

Modified files:
	gcc/cp         : ChangeLog cp-tree.h class.c method.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: assign1.C 

Log message:
	PR c++/16623
	* cp-tree.h (lang_type_class): Add lazy_assignment_op.
	(CLASSTYPE_LAZY_ASSIGNMENT_OP): New macro.
	* class.c (add_implicitly_declared_members): Use
	CLASSTYPE_LAZY_ASSIGNMENT_OP.
	* method.c (lazily_declare_fn): Clear
	CLASSTYPE_LAZY_ASSIGNMENT_OP.
	* search.c (lookup_fnfields_1): Check it.
	
	PR c++/16623
	* g++.dg/template/assign1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4223&r2=1.4224
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1013&r2=1.1014
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.638&r2=1.639
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.299&r2=1.300
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4019&r2=1.4020
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/assign1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-07-19 19:28 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-19 19:33 ` mmitchel at gcc dot gnu dot org
  2004-07-20  2:46 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-07-19 19:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-07-19 19:33 -------
Fixed in GCC 3.5.0.

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


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-07-19 19:33 ` mmitchel at gcc dot gnu dot org
@ 2004-07-20  2:46 ` cvs-commit at gcc dot gnu dot org
  2004-07-20  3:38 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-20  2:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-20 02:46 -------
Subject: Bug 16623

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-07-20 02:46:39

Modified files:
	gcc/cp         : ChangeLog cp-tree.h class.c method.c 

Log message:
	Revert patch for PR c++/16623.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4225&r2=1.4226
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1014&r2=1.1015
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.639&r2=1.640
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.300&r2=1.301



-- 


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-07-20  2:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-20  3:38 ` pinskia at gcc dot gnu dot org
  2004-07-20 15:36 ` cvs-commit at gcc dot gnu dot org
  2004-07-20 15:37 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-20  3:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-20 03:38 -------
Reopening based on reversion.

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


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-07-20  3:38 ` pinskia at gcc dot gnu dot org
@ 2004-07-20 15:36 ` cvs-commit at gcc dot gnu dot org
  2004-07-20 15:37 ` 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-07-20 15:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-20 15:36 -------
Subject: Bug 16623

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-07-20 15:36:08

Modified files:
	gcc/cp         : ChangeLog class.c cp-tree.h method.c search.c 

Log message:
	PR c++/16623
	* cp-tree.h (lang_type_class): Add lazy_assignment_op.
	(CLASSTYPE_LAZY_ASSIGNMENT_OP): New macro.
	* class.c (add_implicitly_declared_members): Use
	CLASSTYPE_LAZY_ASSIGNMENT_OP.
	* method.c (lazily_declare_fn): Clear
	CLASSTYPE_LAZY_ASSIGNMENT_OP.
	* search.c (lookup_fnfields_1): Check it.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4230&r2=1.4231
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.642&r2=1.643
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&r1=1.1019&r2=1.1020
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/method.c.diff?cvsroot=gcc&r1=1.302&r2=1.303
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/search.c.diff?cvsroot=gcc&r1=1.304&r2=1.305



-- 


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


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

* [Bug c++/16623] [3.5 Regression] g++ ICE in tsubst_decl:6081
  2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-07-20 15:36 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-20 15:37 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-07-20 15:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-07-20 15:37 -------
Really fixed this time.

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


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


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

end of thread, other threads:[~2004-07-20 15:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-19  1:24 [Bug c++/16623] New: [3.5] g++ ICE in tsubst_decl:6081 gcc-bugzilla at gcc dot gnu dot org
2004-07-19  1:30 ` [Bug c++/16623] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-07-19  4:08 ` mmitchel at gcc dot gnu dot org
2004-07-19 19:28 ` cvs-commit at gcc dot gnu dot org
2004-07-19 19:33 ` mmitchel at gcc dot gnu dot org
2004-07-20  2:46 ` cvs-commit at gcc dot gnu dot org
2004-07-20  3:38 ` pinskia at gcc dot gnu dot org
2004-07-20 15:36 ` cvs-commit at gcc dot gnu dot org
2004-07-20 15:37 ` 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).