This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/10410: Internal compiler error 56.


>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 at bigfoot dot 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 at 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 at 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 at 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*/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]