This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/10558: [3.3 regression] Segfault on illegal use of template without template args


Old Synopsis: ICE in c_expand_expr in  c-common.c:3715
New Synopsis: [3.3 regression] Segfault on illegal use of template without template args

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 30 01:11:21 2003
State-Changed-Why:
    Confirmed. Though the error happens even earlier (in a 
    tree check function) if checking is enabled. Here's a
    smaller testcase:
    --------------------------
    namespace NS {
      template <typename> struct C {
          template <typename U> C (U);
      };
    
      struct X {
          X(C<int>);
      };
    }
    
    NS::X x(NS::C);
    --------------------------
    It crashes 3.3 as follows:
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
    x.cc:11: internal compiler error: Segmentation fault
    Please submit a full bug report,
    
    3.4 gives a useful error message on this as well as the
    original testcase. 2.95 crashes on this one, but it doesn't
    crash on the original testcase, so this is a 3.3 (not 3.4)
    regression.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10558


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]