public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8513: g++ internal compiler error
@ 2002-11-09 23:47 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2002-11-09 23:47 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pss

Synopsis: g++ internal compiler error

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Sat Nov  9 23:47:13 2002
State-Changed-Why:
    Confirmed with current gcc-3_2-branch, *not* present in the
    mainline. This is not a regression (ICE in 2.95.x, 3.0.x and
    3.1.x too), therefore it is unlikely that will be fixed in
    the release branch.

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


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

* Re: c++/8513: g++ internal compiler error
@ 2003-01-03 20:31 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-01-03 20:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pss

Synopsis: g++ internal compiler error

State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Fri Jan  3 12:31:49 2003
State-Changed-Why:
    Already fixed for 3.3 and 3.4.

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


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

* c++/8513: g++ internal compiler error
@ 2002-11-09 20:26 pss
  0 siblings, 0 replies; 3+ messages in thread
From: pss @ 2002-11-09 20:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8513
>Category:       c++
>Synopsis:       g++ internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 09 20:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.1 or 3.2
>Organization:
Pixar Animation Studios
>Environment:
System: Linux zort 2.4.9-13psmp #1 SMP Tue Nov 13 15:24:04 EST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure --prefix=/pixar/d2 --enable-languages=c,c++ --disable-nls --disable-shared
>Description:
	When running g++ 3.1 or 3.2 on the following input, I get an ICE:
	r.cpp: In static member function `static void (* A::GetFunc())()':
	r.cpp:15: Internal compiler error in c_expand_expr, at c-common.c:3646

>How-To-Repeat:
	Run "g++ -c" on the following code. (I simplified it as much as possible.)
----------------
typedef void (*FuncType)();

class A {
  public:
    template<class T> static void Func();
    static FuncType GetFunc();
};

template <class T>  class B {};

FuncType
A::GetFunc()
{
    return Func<int>;
}
----------------

>Fix:
	Work-around:
	Change the last line to "return A::Func<int>" and it works ok.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-03 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-09 23:47 c++/8513: g++ internal compiler error paolo
  -- strict thread matches above, loose matches on Subject: below --
2003-01-03 20:31 paolo
2002-11-09 20:26 pss

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