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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to