public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10150: Internal compiler error generated by stupid template code
@ 2003-03-19 14:47 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2003-03-19 14:47 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, te200

Synopsis: Internal compiler error generated by stupid template code

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Mar 19 14:47:50 2003
State-Changed-Why:
    Confirmed.  ICE is present in all version I tested (2.95, 3.0, 3.2, 3.3 branches, trunk).

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


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

* c++/10150: Internal compiler error generated by stupid template code
@ 2003-03-19 14:26 te200
  0 siblings, 0 replies; 2+ messages in thread
From: te200 @ 2003-03-19 14:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10150
>Category:       c++
>Synopsis:       Internal compiler error generated by stupid template code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 19 14:26:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tom Evans
>Release:        3.2.1
>Organization:
>Environment:
djgpp, Win98.
>Description:
When I try to compile the code given, I get an internal compiler error.  I can't test it on a proper gcc easily, so this is only in djgpp.  So if you can't reproduce it straight away, chuck this report in the bin.

Note no workaround is needed - the code is stupid, I just thought it still shouldn't generate an internal error.

Attempted compile with 'gxx -c a.cc', got:

a.cc: In instantiation of `Pow<0>::In<0>':
a.cc:9:   instantiated from here
a.cc:9: Internal compiler error in resolve_offset_ref, at cp/init.c:1891
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
template <int N>
struct Pow {
  template <int Val>
  struct In {
    enum { value = Val * Pow<N-1>::In };
  };
};

Pow<0>::In<0> a;
>Fix:

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


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

end of thread, other threads:[~2003-03-19 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19 14:47 c++/10150: Internal compiler error generated by stupid template code lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2003-03-19 14:26 te200

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).