This is the mail archive of the gcc-prs@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]

c++/1666: Internal compiler error on legal code



>Number:         1666
>Category:       c++
>Synopsis:       Internal compiler error on legal code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 16 06:26:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Zsolt Molnár
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Redhat Linux 6.1
gcc version 2.95.2 19991024 (release)
>Description:
Compilation:
When instantiating a static template member by accessing it 
for the first time by a pointer to it, I get an 
internal compiler error.

g++     bug.cpp   -o bug

Result:

bug.cpp: In method `Bug::Bug()':
bug.cpp:18: Internal compiler error.
>How-To-Repeat:
Simply compile:

g++ bug.cpp -o bug
>Fix:
None.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"

Y2xhc3MgQnVnCnsKcHVibGljOiAKCiAgQnVnKCk7ICAKICB0ZW1wbGF0ZTwgY2xhc3MgVCA+IHN0
YXRpYyB2b2lkIGFjdGlvbiggdm9pZCogYUZpcnN0LCB2b2lkKiBhU2Vjb25kICk7Cgpwcml2YXRl
OgoKICB0eXBlZGVmIHZvaWQgKCp0RnVuY3Rpb24pKCB2b2lkKiwgdm9pZCogKTsKICBzdGF0aWMg
dEZ1bmN0aW9uIGlGdW5jdGlvbjsKfTsKCgpCdWc6OkJ1ZygpCnsKICAvLyBFcnJvcgogIGlGdW5j
dGlvbiA9IGFjdGlvbjwgZG91YmxlID47IC8vIENvbXBpbGVyIGVycm9yCiAgCiAgLy8gYWN0aW9u
PCBkb3VibGUgPiggMCwgMCApOyAvLyBXb3Jrcy4KfQoKCnRlbXBsYXRlPCBjbGFzcyBUID4gdm9p
ZCAKQnVnOjphY3Rpb24oIHZvaWQqIGFGaXJzdCwgdm9pZCogYVNlY29uZCApCnsKICAvLyBFTVBU
WQp9CgptYWluKCkKewogIEJ1ZyBidWc7Cn0K

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