This is the mail archive of the gcc-bugs@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++/9374: [3.4 regression] ICE in make_decl_rtl, at varasm.c:790


On Tue, Jan 21, 2003 at 04:17:25PM -0000, bangerth@dealii.org wrote:
> Old Synopsis: [New parser] ICE in  make_decl_rtl, at varasm.c:790
> New Synopsis: [3.4 regression] ICE in  make_decl_rtl, at varasm.c:790
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: bangerth
> State-Changed-When: Tue Jan 21 16:17:24 2003
> State-Changed-Why:
>     Confirmed. I don't believe it's a parser problem though, as the
>     original synopsis indicated, rather some fallout from
>     middle-end changes.

What led me to believe it was closer to the front-end is that,
although the following produces an ICE :

template < typename T >
void f() {
    int i;
    int ind[1] = {i};
}

int main() { f<int>(); }


the following works fine (just changing "int" to "T") :

template < typename T >
void f() {
    T i;
    int ind[1] = {i};
}

int main() { f<int>(); }


And I guess the middle/back-ends are supposed to see the same thing in both
cases.
I hope it helps...

-- 
Sylvain


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