c++/9488: [3.4 regression][New parser] ICE in regenerate_decl_from_template

bangerth@ticam.utexas.edu bangerth@ticam.utexas.edu
Tue Jan 28 22:26:00 GMT 2003


>Number:         9488
>Category:       c++
>Synopsis:       [3.4 regression][New parser] ICE in regenerate_decl_from_template
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 28 21:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
3.4 CVS
>Description:
This ICEs with the new parser:
--------------------------------
struct X {
    template <typename> void foo(void) {}
};
 
template <typename A> struct Y {
    void bar() {
      X().foo<A>();
    }
};
 
template struct Y<int>;
------------------------------------

g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In member function `void X::foo()':
x.cc:2:   instantiated from `void X::foo() [with {template default argument error} = A]'
x.cc:7:   instantiated from `void Y<A>::bar() [with A = int]'
x.cc:11:   instantiated from here
x.cc:2: internal compiler error: in regenerate_decl_from_template, at cp/pt.c:
   10518
Please submit a full bug report,


It works with 3.3 branch.

W.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list