Re: [PATCH] D47875: [MS ABI] Mangle unnamed empty enums (PR37723)

2018-06-07 Thread Hans Wennborg via cfe-commits
On Thu, Jun 7, 2018 at 4:05 PM, Richard Smith via cfe-commits wrote: > > struct S { enum {} e; }; > > ... then do something with decltype(S::e). What happens if there are two > such types in the class? The bug doesn't reproduce if the enumeration has a name, which is why it's hard to reference :-

Re: [PATCH] D47875: [MS ABI] Mangle unnamed empty enums (PR37723)

2018-06-07 Thread Richard Smith via cfe-commits
On Thu, 7 Jun 2018, 13:54 Hans Wennborg via Phabricator via cfe-commits, < cfe-commits@lists.llvm.org> wrote: > hans added a comment. > > Please take a look. > > I couldn't figure out a way to get a mangled name for this without using > debug info. Do you have any ideas? > struct S { enum {} e; }