This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72836] global variable read clashes with reading from cin with sync_stdio(false)
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Aug 2016 23:20:52 +0000
- Subject: [Bug c++/72836] global variable read clashes with reading from cin with sync_stdio(false)
- Auto-submitted: auto-generated
- References: <bug-72836-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72836
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
read is a standard ISO C/C++ function. This is an ODR violation which is not
required be diagnosed.
Basically you re-declared read as a variable rather than a function.