[C++11][Forwarding declaration of enumerations] a bug involving defining enumeration outside of template class body

Platform: linux, x86_84, clang++3.3 (trunk 177699), g++4.7.2

Today I wrote some code testing c++11 "Forwarding declaration of
enumerations".
And a strange thing occurred. The following code makes clang++ core dump and
makes g++ got into a dead loop.

Can you please report a bug in llvm.org/bugs?

Thanks,
Rafael

Hello, Rafael.

I’ve commited it with a bug id 15633 .

Fixed in r178502, thanks for the report.