public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10158: [3.3/3.4 regression] ICE with templates and friends
@ 2003-03-27 12:32 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2003-03-27 12:32 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, poschmid

Synopsis: [3.3/3.4 regression] ICE with templates and friends

State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Thu Mar 27 12:30:25 2003
State-Changed-Why:
    Fixed 3.3 & 3.4
    2003-03-27  Nathan Sidwell  <nathan@codesourcery.com>
    
    	PR c++/10158
    	* parser.c (cp_parser_function_definition): Set
    	DECL_INITIALIZED_IN_CLASS for members.
    	* pt.c (instantiate_decl): Only reduce the template args for
    	friends that are not defined in class.

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


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

* Re: c++/10158: [3.3/3.4 regression] ICE with templates and friends
@ 2003-03-25 13:16 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2003-03-25 13:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nathan, nobody, poschmid

Synopsis: [3.3/3.4 regression] ICE with templates and friends

Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Tue Mar 25 13:15:58 2003
Responsible-Changed-Why:
    fixing

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


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

* Re: c++/10158: [3.3/3.4 regression] ICE with templates and friends
@ 2003-03-20  2:34 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-03-20  2:34 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, poschmid

Old Synopsis: ice (regression)
New Synopsis: [3.3/3.4 regression] ICE with templates and friends

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Mar 20 02:34:43 2003
State-Changed-Why:
    Confirmed. Here's a redux:
    -------------------------
    namespace NS
    {
      struct B {};
      struct D : B  {};
    }
     
    template <int n>
    struct X {
        template <typename> friend void foo(NS::B&)
          { int i = n; }
    };
    X<351> bring_foo_into_scope;
     
    int main() {
      NS::D input;
      foo<char> (input);
    }
    ------------------------------
    
    This crashes 3.3 and mainline, but not 3.2:
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc: In function `void foo(NS::B&) [with {template default argument error} =
       char, int n = 351]':
    x.cc:16:   instantiated from here
    x.cc:10: internal compiler error: Segmentation fault
    Please submit a full bug report,
    
    W.

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


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

end of thread, other threads:[~2003-03-27 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 12:32 c++/10158: [3.3/3.4 regression] ICE with templates and friends nathan
  -- strict thread matches above, loose matches on Subject: below --
2003-03-25 13:16 nathan
2003-03-20  2:34 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).