From mboxrd@z Thu Jan 1 00:00:00 1970 From: fasbjx@libertysurf.fr, Branjonneau@free.fr To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Subject: c++/3944: Template and using directive Date: Sat, 04 Aug 2001 20:56:00 -0000 Message-id: <20010805034221.7595A3E407@alpha.tchume.net> X-SW-Source: 2001-08/msg00078.html List-Id: >Number: 3944 >Category: c++ >Synopsis: Template and using directive >Confidential: no >Severity: serious >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Sat Aug 04 20:56:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Franck Branjonneau >Release: 3.0 (Debian) (Debian testing/unstable) >Organization: >Environment: System: Linux alpha.tchume.net 2.4.4 #2 mar mai 22 08:16:07 CEST 2001 i586 unknown Architecture: i586 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,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux >Description: The following code: namespace N struct Y { template< int > void f() {} }; } struct X: N::Y { template< int x > using N::Y::f< x >; }; gives, from codesourcery: GCC Output These are the results of processing your source code with the following command: g++ [input] Exit code: 256 Messages: /usr/tmp/@13524.7.cc:14: Internal error #980716. /usr/tmp/@13524.7.cc:14: Internal compiler error in do_class_using_decl, at cp/decl2.c:5201 >How-To-Repeat: >Fix: Use correct code: struct X: N::Y { using N::Y::f; }; >Release-Note: >Audit-Trail: >Unformatted: