Skip to content

Instantly share code, notes, and snippets.

@thehans
Created February 13, 2019 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehans/8b80e87bb5b954118ef63849935f6339 to your computer and use it in GitHub Desktop.
Save thehans/8b80e87bb5b954118ef63849935f6339 to your computer and use it in GitHub Desktop.
gcc bug
class A { private: friend int &operator<<(int &i, const A &value) { return i; } };
#pragma GCC optimize ("-fno-ipa-cp-clone")
class B { };
int &operator<<(int &i, const B &ast);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment