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

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