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]

Duplicate typedefs -> internal compiler error in 19990131



A file containing nothing but the following code:

---------------------------------------------------------------------------
class Test
{
    typedef int i;
    typedef int i;
};
---------------------------------------------------------------------------

- gives an internal compiler error when I try to compile it with the
  19990131 snapshot

- compiles cleanly with the egcs 1.1.1 and 1.0.3 release versions

- gives the error "duplicate nested type `Test::i'" in GNU g++ 2.7.2.1

I do not know whether the GNU error message or the egcs silence is the
correct response to the code, but presumably the internal compiler error
definitely shouldn't be happening...

-- 
Leo Breebaart  <leo@lspace.org>


--------------------------------------------------------------------------
/usr/local/bin/g++ -v -c deferr.cc
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/specs
gcc version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=93 -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ deferr.cc /tmp/ccnAsEMl.ii
GNU CPP version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/../../../../include/g++-2
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/../../../../i686-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.04/cc1plus /tmp/ccnAsEMl.ii -quiet -dumpbase deferr.cc -version -o /tmp/ccGd49zy.s
GNU C++ version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental).
deferr.cc:4: Internal compiler error.
deferr.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
deferr.cc:4: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
---------------------------------------------------------------------------


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