[Bug c++/11511] New: [3.4 Regression] ICE on typecast of template-argument-derived value as template argument

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 12 23:58:00 GMT 2003


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

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

           Summary: [3.4 Regression] ICE on typecast of template-argument-
                    derived value as template argument
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          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

PR 11489 has far too much crap in it. Here's the essentials:
--------------------------------
template< bool B > struct foo {};

template< typename C > struct bar
{
  typedef foo< bool(C::value) > baz ;
};
--------------------------------
It fails like so
tmp/gg> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc:5: internal compiler error: in lookup_member, at cp/search.c:1230
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This has been broken in the last couple of days.

W.



More information about the Gcc-bugs mailing list