ICE/trouble from member template typedef

Henric Jungheim junghelh@pe-nelson.com
Wed Oct 21 12:24:00 GMT 1998


I'm having a bit of a problem with the latest snapshot.  I'm including
several examples here as they are almost certainly related.  I'm not
sure that last one is incorrect behavior on the part of the compiler.
It is certainly a little confusing.  The second and third examples
complain about the typedef, but then allow me to declare a variable
using that typedef.

JUNGHELH:/src/scanTest>uname -a
CYGWIN32_NT JUNGHELH 4.0 19.3 i686 unknown
JUNGHELH:/src/scanTest>g++ -v
Reading specs from
\usr\local\lib\gcc-lib\i686-pc-cygwin32\egcs-2.92.16\specs
gcc version egcs-2.92.16 19981019 (gcc2 ss-980609 experimental)
JUNGHELH:/src/scanTest>g++ -c egBug1.cpp
egBug1.cpp:14: Internal compiler error 42.
egBug1.cpp:14: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
JUNGHELH:/src/scanTest>g++ -c egBug2.cpp
egBug2.cpp:14: warning: ANSI C++ forbids typedef which does not specify
a type
JUNGHELH:/src/scanTest>g++ -c egBug3.cpp
egBug3.cpp:14: warning: ANSI C++ forbids typedef which does not specify
a type
JUNGHELH:/src/scanTest>g++ -c egBug4.cpp
egBug4.cpp:14: parse error before `;'
egBug4.cpp:17: syntax error before `;'
JUNGHELH:/src/scanTest>

"configure" was run without any options.

As always, keep up the good work.
egBug1.cpp
egBug2.cpp
egBug3.cpp
egBug4.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: egBug1.cpp
Type: text/x-c++
Size: 190 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981021/84b37127/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: egBug2.cpp
Type: text/x-c++
Size: 222 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981021/84b37127/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: egBug3.cpp
Type: text/x-c++
Size: 206 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981021/84b37127/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: egBug4.cpp
Type: text/x-c++
Size: 215 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19981021/84b37127/attachment-0003.bin>


More information about the Gcc-bugs mailing list