http://llvm.org/bugs/show_bug.cgi?id=6513
Gabor Greif <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Gabor Greif <[email protected]> 2010-10-05 06:16:18 CDT --- A recent clang does give sensible error messages and does not crash any more: ga...@google7:~$ cat > goo.cpp template <enum PortRole ROLE, typename FACILITY, template <enum PortRole, typename> class GOVERN> class Role : public FACILITY, protected GOVERN<ROLE, FACILITY> { friend class GOVERN<ROLE, FACILITY>; }; ga...@google7:~$ ~/llvm-build/Debug+Asserts/bin/clang++ -o hh goo.cpp goo.cpp:1:16: error: ISO C++ forbids forward references to 'enum' types template <enum PortRole ROLE, typename FACILITY, template <enum PortRole, ^ goo.cpp:1:25: error: a non-type template parameter cannot have type 'enum PortRole' template <enum PortRole ROLE, typename FACILITY, template <enum PortRole, ^ goo.cpp:1:73: error: a non-type template parameter cannot have type 'enum PortRole' template <enum PortRole ROLE, typename FACILITY, template <enum PortRole, ^ goo.cpp:4:1: error: expected class name { ^ 4 errors generated. ga...@google7:~$ ~/llvm-build/Debug+Asserts/bin/clang++ --version clang version 2.9 (trunk 115312) Target: x86_64-unknown-linux-gnu Thread model: posix -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
