public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template
@ 2005-08-02  2:39 reichelt at gcc dot gnu dot org
  2005-08-02  2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-02  2:39 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet causes an ICE on the 4.0 branch and mainline:

================================
template<int N> struct A
{
    void foo() throw(int[N]);
};

A<0> a;
================================

bug.cc: In instantiation of 'A<0>':
bug.cc:6:   instantiated from here
bug.cc:3: error: creating array with size zero ('0')
bug.cc:3: internal compiler error: tree check: expected tree_list, have
error_mark in comp_except_specs, at cp/typeck.c:835
Please submit a full bug report, [etc.]

-- 
           Summary: [4.0/4.1 Regression] ICE on invalid throw in template
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-08-06 22:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-02  2:39 [Bug c++/23191] New: [4.0/4.1 Regression] ICE on invalid throw in template reichelt at gcc dot gnu dot org
2005-08-02  2:52 ` [Bug c++/23191] " pinskia at gcc dot gnu dot org
2005-08-02 11:11 ` reichelt at gcc dot gnu dot org
2005-08-04  2:39 ` reichelt at gcc dot gnu dot org
2005-08-06 22:38 ` cvs-commit at gcc dot gnu dot org
2005-08-06 22:48 ` reichelt at gcc dot gnu dot org
2005-08-06 22:48 ` cvs-commit 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).