public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51925] New: [4.7 Regression] ICE in tsubst
@ 2012-01-21  0:05 jakub at gcc dot gnu.org
  2012-01-21  0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-21  0:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51925

             Bug #: 51925
           Summary: [4.7 Regression] ICE in tsubst
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: jason@gcc.gnu.org


class A
{
};
class B;
struct C
{
  C *c1 ();
  int c2 (const A &);
  B *c3;
};
class D;
class B
{
  friend class C;
  D *b;
};
struct E
{
  A e ();
};
template <int, typename T>
struct F
{
  typedef T f;
};
template <typename T1 = void>
struct G : public E
{
  template <int Index>
  struct Select : F <Index, T1>
  {
  };
  using E::e;
  template <int Index>
  typename Select <Index>::f e () {}
  operator typename Select <0>::f () { e <0> (); }
};
struct D
{
  G <A> d (A) {}
};
int
C::c2 (const A &x)
{
  A a = c1 ()->c3->b->d (x);
}

ICEs starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183304


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

end of thread, other threads:[~2012-01-23 17:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21  0:05 [Bug c++/51925] New: [4.7 Regression] ICE in tsubst jakub at gcc dot gnu.org
2012-01-21  0:31 ` [Bug c++/51925] " jakub at gcc dot gnu.org
2012-01-21  5:46 ` pinskia at gcc dot gnu.org
2012-01-23  5:27 ` [Bug c++/51925] [4.7 Regression] ICE in tsubst with using and template function jason at gcc dot gnu.org
2012-01-23 17:01 ` jason at gcc dot gnu.org
2012-01-23 17:07 ` jason at gcc dot gnu.org

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