http://llvm.org/bugs/show_bug.cgi?id=13917

             Bug #: 13917
           Summary: point of declaration of strongly typed enums
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Clang rejects this code:

template <typename T>
struct x
{
    typedef int result;
};

enum class y : x<y>::result;

error: use of undeclared identifier 'y'
enum class y : x<y>::result;
                 ^

[basic.scope.pdecl]p3: The point of declaration for an enumeration is
immediately after the identifier (if any) in either its enum-specifier (7.2) or
its first opaque-enum-declaration (7.2), whichever comes first.

-- 
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