mcc,
@mcc@mastodon.social avatar

I still don't understand why, with C++14, gcc is banning me from having a struct field with the same name as its type*, but clang and msvc both appear to be allowing this. I'm used to msvc disagreeing with clang/gcc, i'm not used to clang and msvc agreeing on something and gcc being the odd one out.

  • e.g.:

enum Abc { A, B, C };
struct Test { Abc Abc; };
int main() { return 3; }

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • thenastyranch
  • ethstaker
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • GTA5RPClips
  • kavyap
  • JUstTest
  • tester
  • cubers
  • cisconetworking
  • ngwrru68w68
  • khanakhh
  • normalnudes
  • provamag3
  • Leos
  • modclub
  • osvaldo12
  • megavids
  • anitta
  • lostlight
  • All magazines