public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "numerical dot simulation at web dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/31584] New: ICE on probably invalid code Date: Sun, 15 Apr 2007 20:15:00 -0000 [thread overview] Message-ID: <bug-31584-6206@http.gcc.gnu.org/bugzilla/> (raw) Hi! The following code snippet leads to an ICE, but I am not sure whether the stuff I am trying to do is valid. Any pointer to info about that also appreciated. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --program-suffix=-4.1 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux Thread model: posix gcc version 4.1.2 20061115 (prerelease) (SUSE Linux) enum Outer { a, b }; template <class T> class C { public: enum Inner { c, d }; template<Inner I, int dummy> struct Dispatcher; template<int dummy> struct Dispatcher<c, dummy> { static const Outer Show = a; }; template<int dummy> struct Dispatcher<d, dummy> { static const Outer Show = b; }; public: template <Inner I> void DoSomething(int j) { typedef Dispatcher<I, 1> dispatcher_t; static const Outer o = dispatcher_t::Show; } }; int main() { C<double> Test; Test.DoSomething<C<double>::c>(1); } -- Summary: ICE on probably invalid code Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: numerical dot simulation at web dot de GCC host triplet: i586-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31584
next reply other threads:[~2007-04-15 20:15 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-04-15 20:15 numerical dot simulation at web dot de [this message] 2007-04-16 6:43 ` [Bug c++/31584] " pinskia at gcc dot gnu dot org 2007-04-16 9:31 ` numerical dot simulation at web dot de 2007-04-18 6:51 ` numerical dot simulation at web dot de 2007-04-23 16:25 ` numerical dot simulation at web dot de 2010-04-28 18:47 ` redi at gcc dot gnu dot org 2010-05-03 12:53 ` numerical dot simulation at web dot de 2010-05-03 13:02 ` [Bug c++/31584] [DR502] " redi at gcc dot gnu dot org 2010-05-03 13:02 ` redi at gcc dot gnu dot org 2010-09-15 9:04 ` numerical dot simulation at web dot de
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=bug-31584-6206@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).