Следующий код не будет компилироваться с помощью g++ 4.5 или 4.6 (моментальный снимок). Он будет компилироваться с помощью компилятора Digital Mars 8.42n.
template <int I>
struct Foo {
  template <int J>
  void bar(int x) {}
};
template <int I>
void test()
{
  Foo<I> a;
  a.bar<8>(9);
};
int main(int argc, char *argv[]) {
  test<0>();
  return 0;
}
Сообщение об ошибке:
bugbody.cpp: In function 'void test() [with int I = 0]':
bugbody.cpp:16:11:   instantiated from here
bugbody.cpp:11:3: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<'
Является ли программа действительной С++?