public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28560]  New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter
@ 2006-07-31 21:57 reichelt at gcc dot gnu dot org
  2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-31 21:57 UTC (permalink / raw)
  To: gcc-bugs

The following (probably valid) code snippet triggers an ICE since GCC 3.1:

======================================================================
template<typename> struct A {};

template<int> struct B;

template<int N> struct C : A<typename B<N>::X __attribute__((unused))> {};
======================================================================

bug.cc:5: internal compiler error: in layout_type, at stor-layout.c:1851
Please submit a full bug report, [etc.]

A similar code snippet causes a segfault:

======================================================================
template<typename> struct A {};

template<int> struct B;

template<> struct A<B<0> __attribute__((unused))> {};
======================================================================


-- 
           Summary: [4.0/4.1/4.2 regression] Trouble with __attribute__ in
                    template parameter
           Product: gcc
           Version: 4.2.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=28560


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

* [Bug c++/28560] [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
@ 2006-07-31 22:13 ` pinskia at gcc dot gnu dot org
  2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-31 22:13 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/28560] [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
  2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
@ 2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
  2006-08-22 20:42 ` jason at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/28560] [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
  2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
  2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
@ 2006-08-22 20:42 ` jason at gcc dot gnu dot org
  2007-11-01 21:58 ` [Bug c++/28560] [4.0/4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-08-22 20:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jason at gcc dot gnu dot org  2006-08-22 20:42 -------


*** This bug has been marked as a duplicate of 28558 ***


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/28560] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-08-22 20:42 ` jason at gcc dot gnu dot org
@ 2007-11-01 21:58 ` reichelt at gcc dot gnu dot org
  2007-11-02 13:50 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-01 21:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2007-11-01 21:58 -------
The second testcase indeed doesn't crash anymore since the fix for PR28558.
However, the first testcase still crashes.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |
            Summary|[4.0/4.1/4.2 regression]    |[4.0/4.1/4.2/4.3 regression]
                   |Trouble with __attribute__  |Trouble with __attribute__
                   |in template parameter       |in template parameter


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


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

* [Bug c++/28560] [4.0/4.1/4.2/4.3 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-11-01 21:58 ` [Bug c++/28560] [4.0/4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
@ 2007-11-02 13:50 ` jason at gcc dot gnu dot org
  2008-01-13 15:45 ` [Bug c++/28560] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-11-02 13:50 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|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-02 13:49:52
               date|                            |


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


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

* [Bug c++/28560] [4.1/4.2/4.3 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-11-02 13:50 ` jason at gcc dot gnu dot org
@ 2008-01-13 15:45 ` rguenth at gcc dot gnu dot org
  2008-01-23  6:31 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-13 15:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-01-13 15:39 -------
Adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2/4.3 regression]|[4.1/4.2/4.3 regression]
                   |Trouble with __attribute__  |Trouble with __attribute__
                   |in template parameter       |in template parameter
   Target Milestone|4.0.4                       |4.1.3


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


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

* [Bug c++/28560] [4.1/4.2/4.3 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-01-13 15:45 ` [Bug c++/28560] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
@ 2008-01-23  6:31 ` jason at gcc dot gnu dot org
  2008-01-23  8:53 ` [Bug c++/28560] [4.1/4.2 " jakub at gcc dot gnu dot org
  2008-01-28 16:28 ` jason at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-01-23  6:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2008-01-23 05:12 -------
Subject: Bug 28560

Author: jason
Date: Wed Jan 23 05:11:58 2008
New Revision: 131755

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131755
Log:
        PR c++/28560
        * decl.c (groktypename): Also ignore attributes on dependent
        possibly-class types.

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


-- 


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


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

* [Bug c++/28560] [4.1/4.2 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-01-23  6:31 ` jason at gcc dot gnu dot org
@ 2008-01-23  8:53 ` jakub at gcc dot gnu dot org
  2008-01-28 16:28 ` jason at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-23  8:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-01-23 08:21 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3 regression]    |[4.1/4.2 regression] Trouble
                   |Trouble with __attribute__  |with __attribute__ in
                   |in template parameter       |template parameter


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


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

* [Bug c++/28560] [4.1/4.2 regression] Trouble with __attribute__ in template parameter
  2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-01-23  8:53 ` [Bug c++/28560] [4.1/4.2 " jakub at gcc dot gnu dot org
@ 2008-01-28 16:28 ` jason at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-01-28 16:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jason at gcc dot gnu dot org  2008-01-28 15:38 -------
Not going to bother fixing on other branches.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.1.3                       |4.3.0


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


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

end of thread, other threads:[~2008-01-28 15:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-31 21:57 [Bug c++/28560] New: [4.0/4.1/4.2 regression] Trouble with __attribute__ in template parameter reichelt at gcc dot gnu dot org
2006-07-31 22:13 ` [Bug c++/28560] " pinskia at gcc dot gnu dot org
2006-07-31 23:44 ` mmitchel at gcc dot gnu dot org
2006-08-22 20:42 ` jason at gcc dot gnu dot org
2007-11-01 21:58 ` [Bug c++/28560] [4.0/4.1/4.2/4.3 " reichelt at gcc dot gnu dot org
2007-11-02 13:50 ` jason at gcc dot gnu dot org
2008-01-13 15:45 ` [Bug c++/28560] [4.1/4.2/4.3 " rguenth at gcc dot gnu dot org
2008-01-23  6:31 ` jason at gcc dot gnu dot org
2008-01-23  8:53 ` [Bug c++/28560] [4.1/4.2 " jakub at gcc dot gnu dot org
2008-01-28 16:28 ` 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).