public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10410: Internal compiler error 56.
@ 2003-04-15 11:36 sensorflo
0 siblings, 0 replies; 2+ messages in thread
From: sensorflo @ 2003-04-15 11:36 UTC (permalink / raw)
To: gcc-gnats; +Cc: fkaufman
>Number: 10410
>Category: c++
>Synopsis: Internal compiler error 56.
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 15 11:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: sensorflo@bigfoot.com
>Release: gcc version 2.95.3 20010315 (SuSE)n 2.95.3 20010315 (SuSE)
>Organization:
>Environment:
>Description:
Complining the code, with no command line arguments, the compiler comes up with the following:
fkaufman@pc-3637:~/src/emulator/emulator> gcc gccbug.cpp
gccbug.cpp:17: Internal compiler error 56.
gccbug.cpp:17: Please submit a full bug report.
gccbug.cpp:17: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
The attached code is quite small, there is not more to say to this problem.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="gccbug.cpp"
Content-Disposition: inline; filename="gccbug.cpp"
template<class T>
class CBaseTemplate
{
public:
template<int i> int Foo() { return i; }
};
typedef CBaseTemplate<int> CBase;
template class CBaseTemplate<int>;
class CMyClass : public CBase
{
};
typedef int (CMyClass::*TFuncPtr)();
TFuncPtr ptr = CBase::Foo<3>;
/*
version check
-------------
fkaufman@pc-3637:~/src/emulator/emulator> gcc -v
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.3/specs
gcc version 2.95.3 20010315 (SuSE)n 2.95.3 20010315 (SuSE)
compiler output
----------------
fkaufman@pc-3637:~/src/emulator/emulator> gcc gccbug.cpp
gccbug.cpp:17: Internal compiler error 56.
gccbug.cpp:17: Please submit a full bug report.
gccbug.cpp:17: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
l*/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/10410: Internal compiler error 56.
@ 2003-04-15 15:15 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-15 15:15 UTC (permalink / raw)
To: fkaufman, gcc-bugs, gcc-prs, nobody, sensorflo
Synopsis: Internal compiler error 56.
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Tue Apr 15 15:15:11 2003
State-Changed-Why:
Fixed since gcc3.0. Present compilers give
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:17: error: assuming pointer to member `int CBaseTemplate<T>::Foo() [with
int i = 3, T = int]'
x.cc:17: error: (a pointer to member can only be formed with `&
CBaseTemplate<T>::Foo() [with int i = 3, T = int]')
Time to upgrade your compiler!
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10410
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-15 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-15 11:36 c++/10410: Internal compiler error 56 sensorflo
2003-04-15 15:15 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).