public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8066: ICE when compiling incorrect template class initialization
@ 2002-10-02 23:59 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-10-02 23:59 UTC (permalink / raw)
  To: d98peter, gcc-bugs, gcc-prs, nobody

Synopsis: ICE when compiling incorrect template class initialization

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Wed Oct  2 23:59:34 2002
State-Changed-Why:
    Duplicate of PR 7188.

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


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

* Re: c++/8066: ICE when compiling incorrect template class initialization
@ 2002-09-28  6:34 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-09-28  6:34 UTC (permalink / raw)
  To: d98peter, gcc-bugs, gcc-prs, nobody

Synopsis: ICE when compiling incorrect template class initialization

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 28 06:34:31 2002
State-Changed-Why:
    Confirmed.  A regression from GCC 3.0.x.

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


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

* c++/8066: ICE when compiling incorrect template class initialization
@ 2002-09-26 23:56 d98peter
  0 siblings, 0 replies; 3+ messages in thread
From: d98peter @ 2002-09-26 23:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8066
>Category:       c++
>Synopsis:       ICE when compiling incorrect template class initialization
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 26 23:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter Strand
>Release:        3.2.1 20020830 (Debian prerelease)
>Organization:
>Environment:
Debian GNU/Linux testing/unstable, i686 PC
>Description:
Fails to give error message on incorrect code. 


% gcc-3.2 foo2.cc 
foo2.cc: In constructor `T<B>::T() [with B = B]':
foo2.cc:12:   instantiated from here
foo2.cc:8: Internal compiler error in sort_base_init, at cp/init.c:598
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


Version 3.0.4 gives correct error message:
% gcc-3.0 foo2.cc 
foo2.cc: In constructor `T<B>::T() [with B = B]':
foo2.cc:12:   instantiated from here
foo2.cc:8: `B' is not an immediate base class of `T<B>'
>How-To-Repeat:
class B { };

template<class T> struct S : public T {
        S() { }
};

template<class B> struct T : public S<B> {
        T() : B() { }
};

struct U : public T<B> {
        U() : T<B>() { }
};
>Fix:

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


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

end of thread, other threads:[~2002-10-03  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 23:59 c++/8066: ICE when compiling incorrect template class initialization mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2002-09-28  6:34 lerdsuwa
2002-09-26 23:56 d98peter

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