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]

Please close PR c++/45


g++-3.0 20010515 does no longer reject the source code that is
attached to the problem report. Although I am not the originator of
this PR, I suggest closing this bug report.
Hope this helps,

Peter Schmid  

source code tspec.C
//pr-45
template <int N> class Int {
public:
    typedef Int val;
};

template <char C> class Char {
public:
    typedef Char val;
};

template <class A, class B>
class NumPromote {};

template <char C, int N>
class NumPromote< Char <C>, Int <N> > {
public:
    typedef Int<C> val;
    typedef Int<N> val1;
};

template <int N, char C>
class NumPromote< Int<N>, Char<C> > {
public:
    typedef Int<N> val;
    typedef Int<C> val1;
};

g++ -v -c tspec.C -W -Wall
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77,objc
Thread model: posix
gcc version 3.0 20010515 (prerelease)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -W -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ tspec.C -D__GNUG__=3 -D_GNU_SOURCE -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase tspec.C -W -Wall -version -o /tmp/ccIQr6xM.s
GNU CPP version 3.0 20010515 (prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0 20010515 (prerelease) (i686-pc-linux-gnu)
	compiled by GNU C version 3.0 20010515 (prerelease).
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++-v3
 /usr/local/include/g++-v3/i686-pc-linux-gnu
 /usr/local/include/g++-v3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
 /usr/local/i686-pc-linux-gnu/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/../../../../i686-pc-linux-gnu/bin/as --traditional-format -V -Qy -o tspec.o /tmp/ccIQr6xM.s
GNU assembler version 2.11.90.0.4 (i686-pc-linux-gnu) using BFD version 2.11.90.0.4


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