This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17068] New: ICE: tree check: expected class 'd', have 'x' (identifier_node) in dependent_template_p, at cp/pt.c:12043


Compiling the following testcase GCC ICEs with the error bellow.
The test case is derived from one configure test of libsigc++2.x.

struct Thing
{
  template <class T>
  void operator()(T a, T b)
  { }
};

template<class T2>
struct OtherThing
{
  void do_something()
  {
    Thing thing_;
    thing_.template operator()<T2>(1, 2);
  }
};

wilx@logout:::~/tmp> g++ -c libsigc++-test.cxx
libsigc++-test.cxx: In member function `void OtherThing<T2>::do_something()':
libsigc++-test.cxx:14: internal compiler error: tree check: expected class 'd',
have 'x' (identifier_node) in dependent_template_p, at cp/pt.c:12043
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE: tree check: expected class 'd', have 'x'
                    (identifier_node) in dependent_template_p, at
                    cp/pt.c:12043
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i386-unknown-freebsd4.10
  GCC host triplet: i386-unknown-freebsd4.10
GCC target triplet: i386-unknown-freebsd4.10


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]