[PATCH] D130058: [Clang] Diagnose ill-formed constant expression when setting a non fixed enum to a value outside the range of the enumeration values
    Mike Hommey via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Aug 11 00:25:00 PDT 2022
    
    
  
glandium added a comment.
Having looked around in the Firefox codebase for cases that now fail to build because of this, and looking at the clarification in DR2338, I wonder if enums in `extern "C"` sections should be treated as if they had an explicit type of `int` as if it were e.g. `enum Foo: int { ... }`.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130058/new/
https://reviews.llvm.org/D130058
    
    
More information about the cfe-commits
mailing list