Skip to content
Commit 66e08995 authored by Akira Hatanaka's avatar Akira Hatanaka
Browse files

[Sema] Reject list-initialization of enumeration types from a

brace-init-list containing a single element of a different scoped
enumeration type

It is rejected because it doesn't satisfy the condition that the element
has to be implicitly convertible to the underlying type of the
enumeration.

http://eel.is/c++draft/dcl.init.list#3.8

Differential Revision: https://reviews.llvm.org/D126084
parent f8b692dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment