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

           Summary: [4.5/4.6 Regression] ICE with DECL_PARM_INDEX (this)
                    in cp_tree_equal
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ja...@gcc.gnu.org
                CC: ja...@gcc.gnu.org


The following testcase ICEs starting with:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149223
- PR40619 fix, both in C++98 and -std=c++0x modes:

template <bool>
struct S
{
};

template <class T>
class U
{
  T t;
  int foo () const
  {
    S <sizeof (t) == 1> s;
    return 1;
  }
  int bar () const
  {
    S <sizeof (t) == 1> s;
    return 1;
  }
};

Reply via email to