public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28879]  New: [4.0/4.1/4.2 regression] ICE with variable-sized array in template function
@ 2006-08-28 23:48 reichelt at gcc dot gnu dot org
  2006-08-28 23:48 ` [Bug c++/28879] " reichelt at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-28 23:48 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE since GCC 3.4.0:

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

template<int> void foo()
{
  int x[A().i];
}
==========================

bug.cc: In function 'void foo()':
bug.cc:8: internal compiler error: in value_dependent_expression_p, at
cp/pt.c:12761
Please submit a full bug report, [etc.]

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

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

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

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:2190
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with variable-sized array
                    in template function
           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=28879


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

end of thread, other threads:[~2010-04-20 13:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-28 23:48 [Bug c++/28879] New: [4.0/4.1/4.2 regression] ICE with variable-sized array in template function reichelt at gcc dot gnu dot org
2006-08-28 23:48 ` [Bug c++/28879] " reichelt at gcc dot gnu dot org
2006-08-28 23:57 ` pinskia at gcc dot gnu dot org
2006-08-29  2:44 ` pinskia at gcc dot gnu dot org
2006-09-01 22:17 ` mmitchel at gcc dot gnu dot org
2006-10-17  3:06 ` [Bug c++/28879] [4.0/4.1/4.2 regression] ICE with VLA " mmitchel at gcc dot gnu dot org
2007-02-03 19:42 ` [Bug c++/28879] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 20:55 ` pinskia at gcc dot gnu dot org
2007-02-14  9:16 ` mmitchel at gcc dot gnu dot org
2007-03-07 22:39 ` pinskia at gcc dot gnu dot org
2007-11-19 23:31 ` jakub at gcc dot gnu dot org
2007-11-20  6:39 ` jakub at gcc dot gnu dot org
2008-02-13 18:14 ` jason at gcc dot gnu dot org
2008-02-13 18:19 ` mark at codesourcery dot com
2008-07-04 21:29 ` [Bug c++/28879] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-03-20 19:37 ` jason at gcc dot gnu dot org
2009-03-21 20:16 ` jason at gcc dot gnu dot org
2009-03-21 20:51 ` jason at gcc dot gnu dot org
2009-03-21 21:14 ` [Bug c++/28879] [4.2/4.3 Regression] " rguenth at gcc dot gnu dot org
2009-03-22  3:07 ` jason at gcc dot gnu dot org
2009-03-31 19:41 ` [Bug c++/28879] [4.3 " jsm28 at gcc dot gnu dot org
2009-08-04 12:35 ` rguenth at gcc dot gnu dot org
2010-04-20 13:25 ` rguenth 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).