public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34962]  New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
@ 2008-01-25  0:48 reichelt at gcc dot gnu dot org
  2008-01-25  0:54 ` [Bug c++/34962] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-25  0:48 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.0.0:

=================================================================
struct A
{
  static const int i;
};

template<int> void foo()
{
  int x[A::i] __attribute((vector_size(8)));
}
=================================================================

bug.cc: In function 'void foo()':
bug.cc:8: internal compiler error: tree check: did not expect class 'type',
have 'type' (record_type) in contains_placeholder_p, at tree.c:2267
Please submit a full bug report, [etc.]

This is related to PR34913, but not yet fixed.


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with VLA and attribute in
                    template
           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=34962


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

* [Bug c++/34962] [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
@ 2008-01-25  0:54 ` reichelt at gcc dot gnu dot org
  2008-01-25 10:02 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-25  0:54 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/34962] [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
  2008-01-25  0:54 ` [Bug c++/34962] " reichelt at gcc dot gnu dot org
@ 2008-01-25 10:02 ` rguenth at gcc dot gnu dot org
  2008-01-26 17:32 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-25 10:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-25 09:56 -------
P2 as we likely do sth bogus when we not ICE (with checking disabled).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-checking
      Known to fail|                            |4.0.4 4.1.2 4.2.3 4.3.0
      Known to work|                            |3.4.6
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-25 09:56:32
               date|                            |


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


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

* [Bug c++/34962] [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
  2008-01-25  0:54 ` [Bug c++/34962] " reichelt at gcc dot gnu dot org
  2008-01-25 10:02 ` rguenth at gcc dot gnu dot org
@ 2008-01-26 17:32 ` rguenth at gcc dot gnu dot org
  2008-02-13 18:19 ` jason at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-26 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-01-26 17:15 -------
Also related to PR28879


-- 


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


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

* [Bug c++/34962] [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-26 17:32 ` rguenth at gcc dot gnu dot org
@ 2008-02-13 18:19 ` jason at gcc dot gnu dot org
  2008-02-13 21:28 ` jason at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-13 18:19 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-01-25 09:56:32         |2008-02-13 18:19:05
               date|                            |


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


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

* [Bug c++/34962] [4.1/4.2/4.3 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-02-13 18:19 ` jason at gcc dot gnu dot org
@ 2008-02-13 21:28 ` jason at gcc dot gnu dot org
  2008-07-04 22:32 ` [Bug c++/34962] [4.2 " jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-02-13 21:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2008-02-13 21:28 -------
Subject: Bug 34962

Author: jason
Date: Wed Feb 13 21:27:16 2008
New Revision: 132297

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132297
Log:
        PR c++/34962, c++/34937, c++/34939
        * decl2.c (is_late_template_attribute): Always defer attributes
        vector_size and weak.

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


-- 


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


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

* [Bug c++/34962] [4.2 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-02-13 21:28 ` jason at gcc dot gnu dot org
@ 2008-07-04 22:32 ` jsm28 at gcc dot gnu dot org
  2008-12-02 17:21 ` jason at gcc dot gnu dot org
  2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jsm28 at gcc dot gnu dot org  2008-07-04 22:31 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE    |[4.2 regression] ICE with
                   |with VLA and attribute in   |VLA and attribute in
                   |template                    |template
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/34962] [4.2 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-07-04 22:32 ` [Bug c++/34962] [4.2 " jsm28 at gcc dot gnu dot org
@ 2008-12-02 17:21 ` jason at gcc dot gnu dot org
  2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-12-02 17:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jason at gcc dot gnu dot org  2008-12-02 17:09 -------
Fixed in 4.3.


-- 

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=34962


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

* [Bug c++/34962] [4.2 regression] ICE with VLA and attribute in template
  2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-12-02 17:21 ` jason at gcc dot gnu dot org
@ 2009-04-29 15:23 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-29 15:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-04-29 15:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-25  0:48 [Bug c++/34962] New: [4.1/4.2/4.3 regression] ICE with VLA and attribute in template reichelt at gcc dot gnu dot org
2008-01-25  0:54 ` [Bug c++/34962] " reichelt at gcc dot gnu dot org
2008-01-25 10:02 ` rguenth at gcc dot gnu dot org
2008-01-26 17:32 ` rguenth at gcc dot gnu dot org
2008-02-13 18:19 ` jason at gcc dot gnu dot org
2008-02-13 21:28 ` jason at gcc dot gnu dot org
2008-07-04 22:32 ` [Bug c++/34962] [4.2 " jsm28 at gcc dot gnu dot org
2008-12-02 17:21 ` jason at gcc dot gnu dot org
2009-04-29 15:23 ` pinskia 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).