[LLVMbugs] [Bug 6513] New: crash on invalid (enum forward decl in template arg list)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 5 10:09:45 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6513
Summary: crash on invalid (enum forward decl in template arg
list)
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ggreif at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Compile this with clang++:
$ cat abc.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>;
};
$ /phys/mfs/hc_rap/tools/llvm/Release/bin/clang abc.cpp -o /dev/null
abc.cpp:1:16: error: ISO C++ forbids forward references to 'enum' types
template <enum PortRole ROLE, typename FACILITY, template <enum PortRole,
typename> class GOVERN>
^
---> CRASH!
--
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.
More information about the llvm-bugs
mailing list