This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39711] New: fail to use template template parameter with default values
- From: "urykhy at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2009 06:10:56 -0000
- Subject: [Bug c++/39711] New: fail to use template template parameter with default values
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$g++ -v -save-temps test1.cpp
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.3-7'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-targets=all --with-tune=generic --enable-checking=release
--build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Debian 4.3.3-7)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic'
/usr/lib/gcc/i486-linux-gnu/4.3.3/cc1plus -E -quiet -v -D_GNU_SOURCE test1.cpp
-mtune=generic -fpch-preprocess -o test1.ii
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../i486-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.3
/usr/include/c++/4.3/i486-linux-gnu
/usr/include/c++/4.3/backward
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.3.3/include
/usr/lib/gcc/i486-linux-gnu/4.3.3/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc' '-mtune=generic'
/usr/lib/gcc/i486-linux-gnu/4.3.3/cc1plus -fpreprocessed test1.ii -quiet
-dumpbase test1.cpp -mtune=generic -auxbase test1 -version -o test1.s
GNU C++ (Debian 4.3.3-7) version 4.3.3 (i486-linux-gnu)
compiled by GNU C version 4.3.3, GMP version 4.2.4, MPFR version
2.4.1-p2.
warning: GMP header version 4.2.4 differs from library version 4.2.2.
warning: MPFR header version 2.4.1-p2 differs from library version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c88e63435cdcbb6cdbdd73c6b0b8618a
test1.cpp: In function â??int main()â??:
test1.cpp:14: error: type/value mismatch at argument 3 in template parameter
list for â??template<class Key, class Data, template<class, class> class Map>
class Aâ??
test1.cpp:14: error: expected a template of type â??template<class, class>
class Mapâ??, got â??template<class _Key, class _Tp, class _Compare, class
_Alloc> class std::mapâ??
test1.cpp:14: error: invalid type in declaration before â??;â?? token
ps:
g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44) have no problems here.
--
Summary: fail to use template template parameter with default
values
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: urykhy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39711