public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11509] New: [3.4 regression] ICE with expression with static member in template arg
@ 2003-07-12 23:01 bangerth at dealii dot org
  2003-07-12 23:02 ` [Bug c++/11509] " bangerth at dealii dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-07-12 23:01 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] ICE with expression with static member
                    in template arg
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

This is reduced from 10316, but it was too simple to be fun (less than 3 minutes
to cut down :-):
-----------------------------
template <class> struct A { static const int n = 1; } ;
template <int> struct B;

template <class S>
struct restype_order {
    static const int s = A<S>::n;
    typedef typename B<(s > 0)>::t t;
};
-----------------------------

This ICEs not with present mainline:
tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It doesn't ICE with 3.3.0, but I don't have a 3.3 branch snapshot on this
machine, so can't test whether this bug also is on the branch. It's a regression
in any case. The bug was introduced into mainline after 20030520.

W.


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

end of thread, other threads:[~2003-07-14 21:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12 23:01 [Bug c++/11509] New: [3.4 regression] ICE with expression with static member in template arg bangerth at dealii dot org
2003-07-12 23:02 ` [Bug c++/11509] " bangerth at dealii dot org
2003-07-12 23:10 ` pinskia at physics dot uc dot edu
2003-07-12 23:14 ` bangerth at dealii dot org
2003-07-12 23:16 ` pinskia at physics dot uc dot edu
2003-07-13  0:04 ` bangerth at dealii dot org
2003-07-14 20:38 ` mmitchel at gcc dot gnu dot org
2003-07-14 21:32 ` cvs-commit at gcc dot gnu dot org
2003-07-14 21:42 ` mmitchel at gcc dot gnu dot org
2003-07-14 21:43 ` mmitchel 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).