public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35097] [4.3 regression] ICE with attribute and template specialization
  2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
@ 2008-02-06  7:29 ` reichelt at gcc dot gnu dot org
  2008-02-06 12:24 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06  7:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/35097]  New: [4.3 regression] ICE with attribute and template specialization
@ 2008-02-06  7:29 reichelt at gcc dot gnu dot org
  2008-02-06  7:29 ` [Bug c++/35097] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06  7:29 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE on mainline:

===========================================================
template<int> struct A;

template<> struct A<0>
{
  typedef int X __attribute((aligned(4)));
};

template<typename T> void foo(const A<0>::X&, T);

void bar()
{
  foo(A<0>::X(), 0);
}
===========================================================

bug.cc: In function 'void bar()':
bug.cc:12: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with attribute and template
                    specialization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/35097] [4.3 regression] ICE with attribute and template specialization
  2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
  2008-02-06  7:29 ` [Bug c++/35097] " reichelt at gcc dot gnu dot org
@ 2008-02-06 12:24 ` rguenth at gcc dot gnu dot org
  2008-02-12  4:33 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-06 12:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-02-06 12:23 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to work|                            |4.2.2
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-06 12:23:46
               date|                            |


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


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

* [Bug c++/35097] [4.3 regression] ICE with attribute and template specialization
  2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
  2008-02-06  7:29 ` [Bug c++/35097] " reichelt at gcc dot gnu dot org
  2008-02-06 12:24 ` rguenth at gcc dot gnu dot org
@ 2008-02-12  4:33 ` jason at gcc dot gnu dot org
  2008-02-12  6:36 ` jason at gcc dot gnu dot org
  2008-02-12  6:43 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-12  4:33 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-02-06 12:23:46         |2008-02-12 04:32:50
               date|                            |


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


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

* [Bug c++/35097] [4.3 regression] ICE with attribute and template specialization
  2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-02-12  4:33 ` jason at gcc dot gnu dot org
@ 2008-02-12  6:36 ` jason at gcc dot gnu dot org
  2008-02-12  6:43 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-12  6:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jason at gcc dot gnu dot org  2008-02-12 06:35 -------
Subject: Bug 35097

Author: jason
Date: Tue Feb 12 06:34:59 2008
New Revision: 132253

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132253
Log:
        PR c++/35097
        * pt.c (tsubst): Don't look up a template typedef in an explicit
        specialization.

Added:
    trunk/gcc/testsuite/g++.dg/ext/attrib31.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


-- 


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


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

* [Bug c++/35097] [4.3 regression] ICE with attribute and template specialization
  2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-02-12  6:36 ` jason at gcc dot gnu dot org
@ 2008-02-12  6:43 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-12  6:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2008-02-12 06:42 -------
Fixed.


-- 

jason at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-02-12  6:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  7:29 [Bug c++/35097] New: [4.3 regression] ICE with attribute and template specialization reichelt at gcc dot gnu dot org
2008-02-06  7:29 ` [Bug c++/35097] " reichelt at gcc dot gnu dot org
2008-02-06 12:24 ` rguenth at gcc dot gnu dot org
2008-02-12  4:33 ` jason at gcc dot gnu dot org
2008-02-12  6:36 ` jason at gcc dot gnu dot org
2008-02-12  6:43 ` jason 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).