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

            Bug ID: 18400
           Summary: Underlying type of an enum class doesn't discard
                    cv-qualifiers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

enum class IDontDiscardQualifiers : int const volatile { }; 

int main() 
{
  static_assert(is_same<underlying_type<IDontDiscardQualifiers>::type,
                                        int>::value, "");
}

gcc accepts this, as it discards the const from the underlying type, clang
doesn't.

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