Ticket #64 (new bug)

Opened 3 years ago

Incomplete template class during overload resolution

Reported by: verm Assigned to: tendra
Priority: normal Milestone: 5.0.0
Component: Producers Version: HEAD
Severity: normal Keywords:
Cc: Operating System: Any
Hardware: Any Sub Component: Producers - cpp

Description

Reporter: Jose Juan Mendoza Rodriguez <josejuanmr@iespana.es> Opened: 2003-12-30 10:01

template <int N> class A {
  int a[N];
public:
  void operator << (int b) { a[0] = b; }
};
extern A<1> a;
int main(void) { a << 1; return 0; }

line 10: Error: Operands of '<<' should be integral, ...

The function complete_class (instance.c, line 1363) should be called before DEREF_nspace at line 1122 of operator.c.