Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git 3dad45fb47912e466a6171a7f732ee806e660657) (https://github.com/llvm-mirror/llvm.git e862164938ea5de32783a86aa5095de77e671082)

Options
Don't Use Boost
C++17
no pedantic
Raw compiler options
-fms-extensions

$ clang++ prog.cc -std=c++17 -fms-extensions
prog.cc:8:28: fatal error: recursive template instantiation exceeded maximum depth of 1024
  virtual void baz() { new A<piid>; }
                           ^
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: (skipping 1015 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:8:28: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
prog.cc:12:7: note: in instantiation of member function 'A<&__uuidof(B)>::baz' requested here
  new A<&__uuidof(B)>;
      ^
prog.cc:8:28: note: use -ftemplate-depth=N to increase recursive template instantiation depth
  virtual void baz() { new A<piid>; }
                           ^
1 error generated.
Exit Code:
1