public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: fasbjx@libertysurf.fr, Branjonneau@free.fr To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Subject: c++/3889: Problems with template parameter dependant name Date: Mon, 30 Jul 2001 19:56:00 -0000 [thread overview] Message-ID: <20010731024520.D23EF3F062@alpha.tchume.net> (raw) >Number: 3889 >Category: c++ >Synopsis: Problems with template parameter dependant name >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Mon Jul 30 19: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: template< typename T > struct S {}; // 1 template< typename T, int = S< T >::X::x > class C {}; don't compile. 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/@28107.7.cc:5: parse error before `::' token Note that gcc gives the same error with: template< typename T > struct S {}; // 2 template< typename T > class C { static int const i = S< T >::X::x; }; >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2001-07-30 19:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010731024520.D23EF3F062@alpha.tchume.net \ --to=fasbjx@libertysurf.fr \ --cc=Branjonneau@free.fr \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).