public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34100]  New: [4.3 regression] ICE with vector attribute
@ 2007-11-15  7:40 reichelt at gcc dot gnu dot org
  2007-11-15  7:40 ` [Bug c++/34100] " reichelt at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-15  7:40 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE on mainline:

============================================================
template<typename T> struct A
{
  typedef typename T::X Y __attribute__((vector_size(8)));
};

A<int> a;
============================================================

bug.cc: In instantiation of 'A<int>':
bug.cc:6:   instantiated from here
bug.cc:3: error: 'int' is not a class, struct, or union type
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in handle_vector_size_attribute, at c-common.c:6039
Please submit a full bug report, [etc.]

The bug appeared between 2007-09-14 and 2007-10-13.


-- 
           Summary: [4.3 regression] ICE with vector attribute
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=34100


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

* [Bug c++/34100] [4.3 regression] ICE with vector attribute
  2007-11-15  7:40 [Bug c++/34100] New: [4.3 regression] ICE with vector attribute reichelt at gcc dot gnu dot org
@ 2007-11-15  7:40 ` reichelt at gcc dot gnu dot org
  2007-11-15 11:18 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-11-15  7:40 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=34100


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

* [Bug c++/34100] [4.3 regression] ICE with vector attribute
  2007-11-15  7:40 [Bug c++/34100] New: [4.3 regression] ICE with vector attribute reichelt at gcc dot gnu dot org
  2007-11-15  7:40 ` [Bug c++/34100] " reichelt at gcc dot gnu dot org
@ 2007-11-15 11:18 ` jakub at gcc dot gnu dot org
  2007-11-16  7:06 ` jakub at gcc dot gnu dot org
  2007-11-16  7:11 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-15 11:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2007-11-15 11:17 -------
Testing a fix.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub 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-15 11:17:55
               date|                            |


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


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

* [Bug c++/34100] [4.3 regression] ICE with vector attribute
  2007-11-15  7:40 [Bug c++/34100] New: [4.3 regression] ICE with vector attribute reichelt at gcc dot gnu dot org
  2007-11-15  7:40 ` [Bug c++/34100] " reichelt at gcc dot gnu dot org
  2007-11-15 11:18 ` jakub at gcc dot gnu dot org
@ 2007-11-16  7:06 ` jakub at gcc dot gnu dot org
  2007-11-16  7:11 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-16  7:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2007-11-16 07:06 -------
Subject: Bug 34100

Author: jakub
Date: Fri Nov 16 07:06:25 2007
New Revision: 130220

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130220
Log:
        PR c++/34100
        * pt.c (apply_late_template_attributes): Do nothing if decl's type is
        error_mark_node.

        * g++.dg/template/crash73.C: New test.

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


-- 


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


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

* [Bug c++/34100] [4.3 regression] ICE with vector attribute
  2007-11-15  7:40 [Bug c++/34100] New: [4.3 regression] ICE with vector attribute reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-11-16  7:06 ` jakub at gcc dot gnu dot org
@ 2007-11-16  7:11 ` jakub at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-16  7:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2007-11-16 07:11 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-11-16  7:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15  7:40 [Bug c++/34100] New: [4.3 regression] ICE with vector attribute reichelt at gcc dot gnu dot org
2007-11-15  7:40 ` [Bug c++/34100] " reichelt at gcc dot gnu dot org
2007-11-15 11:18 ` jakub at gcc dot gnu dot org
2007-11-16  7:06 ` jakub at gcc dot gnu dot org
2007-11-16  7:11 ` jakub 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).