[LLVMbugs] [Bug 13917] New: point of declaration of strongly typed enums

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 25 07:41:38 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: vanyacpp at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list