public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8865: SegFault with local undefined types and templates
@ 2002-12-10 14:14 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-10 14:14 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, joona.kiiski, nobody

Old Synopsis: A way to make g++ crash (segfault)
New Synopsis: SegFault with local undefined types and templates

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Dec 10 14:14:09 2002
State-Changed-Why:
    Confirmed. Here's a testcase that is smaller by about a
    factor 4000:
    --------------------------
    template <class T> struct Base {
        struct Local;
    };
    
    template <class T> struct Derived: public Base<T> {
        void g(struct Local) {}
    };
    
    template class Derived<int>;
    ------------------------------
    
    This ICEs with all versions since at least 2.95. Presently
    I get 
    g/server> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c main.ii
    main.ii:6: warning: `struct Local' declares a new type at namespace scope
    main.ii:6: warning:   names from dependent base classes are not visible to
       unqualified name lookup - to refer to the inherited type, say `struct
       Derived::Local'
    main.ii:6: internal error: Speicherzugriffsfehler
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

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


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

* Re: c++/8865: SegFault with local undefined types and templates
@ 2003-01-22 22:08 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-22 22:08 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, joona.kiiski, nobody

Synopsis: SegFault with local undefined types and templates

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 22 22:08:05 2003
State-Changed-Why:
    No longer ICEs:
    g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
    x.cc: In member function `void Derived<T>::g(Local) [with T = int]':
    x.cc:9:   instantiated from here
    x.cc:6: error: `<anonymous>' has incomplete type
    x.cc:2: error: declaration of `struct Base<int>::Local'

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


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

end of thread, other threads:[~2003-01-22 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-10 14:14 c++/8865: SegFault with local undefined types and templates bangerth
2003-01-22 22:08 bangerth

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