public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38357]  New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault)
@ 2008-12-01 23:54 debian-gcc at lists dot debian dot org
  2008-12-02  0:15 ` [Bug c++/38357] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2008-12-01 23:54 UTC (permalink / raw)
  To: gcc-bugs

4.1 branch gives an error, message, 4.2 and up segfault.

  Matthias

$ g++-4.1 -save-temps bug.cc
bug.cc:17: error: could not convert template argument 'BUG::name' to 'bool'

$ g++ -save-temps bug.cc
bug.cc:17: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

class BUG
{
public:
 bool name() { return true; }
};

template <bool T>
struct BUG1_5
{

};

template <bool name>
class BUG2 : BUG
{
public:
 typedef BUG1_5<name> ptr;
};

int main()
{
 BUG2<false> b;
 return 0;
}


-- 
           Summary: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation
                    fault)
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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

* [Bug c++/38357] [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
@ 2008-12-02  0:15 ` pinskia at gcc dot gnu dot org
  2008-12-05 12:19 ` [Bug c++/38357] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-02  0:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-12-02 00:14 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|4.1.3                       |4.1.3 4.0.2
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-02 00:14:19
               date|                            |
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/38357] [4.2/4.3/4.4 Regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
  2008-12-02  0:15 ` [Bug c++/38357] " pinskia at gcc dot gnu dot org
@ 2008-12-05 12:19 ` rguenth at gcc dot gnu dot org
  2009-01-15 18:08 ` sje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-05 12:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/38357] [4.2/4.3/4.4 Regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
  2008-12-02  0:15 ` [Bug c++/38357] " pinskia at gcc dot gnu dot org
  2008-12-05 12:19 ` [Bug c++/38357] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2009-01-15 18:08 ` sje at gcc dot gnu dot org
  2009-01-15 18:09 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-01-15 18:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sje at gcc dot gnu dot org  2009-01-15 18:08 -------
Subject: Bug 38357

Author: sje
Date: Thu Jan 15 18:07:46 2009
New Revision: 143402

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143402
Log:
        PR c++/38357
        * pt.c (tsubst): Check for NULL args.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


-- 


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


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

* [Bug c++/38357] [4.2/4.3/4.4 Regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2009-01-15 18:08 ` sje at gcc dot gnu dot org
@ 2009-01-15 18:09 ` sje at gcc dot gnu dot org
  2009-01-16 22:35 ` [Bug c++/38357] [4.2/4.3 " sje at gcc dot gnu dot org
  2009-01-16 22:39 ` [Bug c++/38357] [4.2 " sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-01-15 18:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sje at gcc dot gnu dot org  2009-01-15 18:09 -------
Subject: Bug 38357

Author: sje
Date: Thu Jan 15 18:09:04 2009
New Revision: 143403

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143403
Log:
        PR c++/38357
        * g++.dg/template/crash87.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash87.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/38357] [4.2/4.3 Regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2009-01-15 18:09 ` sje at gcc dot gnu dot org
@ 2009-01-16 22:35 ` sje at gcc dot gnu dot org
  2009-01-16 22:39 ` [Bug c++/38357] [4.2 " sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: sje at gcc dot gnu dot org @ 2009-01-16 22:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sje at gcc dot gnu dot org  2009-01-16 22:35 -------
Subject: Bug 38357

Author: sje
Date: Fri Jan 16 22:35:24 2009
New Revision: 143444

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143444
Log:
        PR c++/31260
        PR c++/38357
        * pt.c (tsubst): Check for NULL args.
        * g++.dg/template/crash87.C: New test.


Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/crash87.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/pt.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/38357] [4.2 Regression] ICE cc1plus (Segmentation fault)
  2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2009-01-16 22:35 ` [Bug c++/38357] [4.2/4.3 " sje at gcc dot gnu dot org
@ 2009-01-16 22:39 ` sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2009-01-16 22:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from sje at cup dot hp dot com  2009-01-16 22:38 -------
Fixed on Trunk (4.4) and 4.3 branch.  4.2 branch is closed (or shortly will be)
so I am going to just close this as fixed.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
      Known to fail|4.2.5 4.3.3                 |4.2.5
      Known to work|4.1.3 4.0.2 4.4.0           |4.1.3 4.0.2 4.3.3 4.4.0
         Resolution|                            |FIXED
            Summary|[4.2/4.3 Regression] ICE    |[4.2 Regression] ICE cc1plus
                   |cc1plus (Segmentation fault)|(Segmentation fault)


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


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

end of thread, other threads:[~2009-01-16 22:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01 23:54 [Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault) debian-gcc at lists dot debian dot org
2008-12-02  0:15 ` [Bug c++/38357] " pinskia at gcc dot gnu dot org
2008-12-05 12:19 ` [Bug c++/38357] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2009-01-15 18:08 ` sje at gcc dot gnu dot org
2009-01-15 18:09 ` sje at gcc dot gnu dot org
2009-01-16 22:35 ` [Bug c++/38357] [4.2/4.3 " sje at gcc dot gnu dot org
2009-01-16 22:39 ` [Bug c++/38357] [4.2 " sje at cup dot hp dot com

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).