Essentially, clang will accept the following in C++11 and forth:
enum B : bool { b }; enum C : char { c }; int &func(bool); double &func(char); void func(unsigned); void func(long); void g() { int &r = func(b); double &d = func(c); }
Differential D32251
Implement DR1601 - Promotion of enumeration with fixed underlying type ismailp on Apr 19 2017, 3:37 PM. Authored by
Details
Essentially, clang will accept the following in C++11 and forth: enum B : bool { b }; enum C : char { c }; int &func(bool); double &func(char); void func(unsigned); void func(long); void g() { int &r = func(b); double &d = func(c); }
Diff Detail
Event Timeline
|