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]
Other format: [Raw text]

c++/8977: g++ 3.2.2: problem with code using templates args


>Number:         8977
>Category:       c++
>Synopsis:       g++ 3.2.2 unable to compile some code with template args
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 04:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Djalil CHAFAI
>Release:        3.2.2 20021212 (Debian prerelease) (Debian testing/unstable)
>Organization:
Mathematical Institute of University of Oxford
>Environment:
System: Linux sakapuss 2.4.20-presario #1 jeu déc 12 11:23:52 GMT 2002 i686 unknown
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
	A small piece of code using templates args with explicit types
	fails to compile with g++ 3.2 (parse error), whereas it compiles
	fine with g++ 3.0 and Intel C++ 7.
>How-To-Repeat:
	
begin-base64 744 test.cpp
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRl
IDxpb3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnRlbXBsYXRlPHR5
cGVuYW1lIFQsIHR5cGVuYW1lIHZlY3RvcjxUPjo6c2l6ZV90eXBlIGRpbT4g
Y2xhc3MgdGVzdCB7CglwdWJsaWM6CgkJdmVjdG9yPFQ+IGRhdGE7CglwdWJs
aWM6CgkJdmlydHV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