public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31584]  New: ICE on probably invalid code
@ 2007-04-15 20:15 numerical dot simulation at web dot de
  2007-04-16  6:43 ` [Bug c++/31584] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: numerical dot simulation at web dot de @ 2007-04-15 20:15 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-09-15  9:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-15 20:15 [Bug c++/31584] New: ICE on probably invalid code numerical dot simulation at web dot de
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

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).