This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- From: "jensseidel at users dot sf.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jul 2017 11:39:57 +0000
- Subject: [Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- Auto-submitted: auto-generated
- References: <bug-16251-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16251
Jens Seidel <jensseidel at users dot sf.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jensseidel at users dot sf.net
--- Comment #8 from Jens Seidel <jensseidel at users dot sf.net> ---
According to http://www.cplusplus.com/reference/ostream/ostream/ostream/ (yes,
it's not the standard) std::ostream should provide NO default constructor at
all.
In my code "class A : public std::ostream {};" was accepted even with g++ 7
with strongest warning levels whereas it fails on other compilers. What now?
Even if binary compatibility is an issue at least some diagnostics could be
printed.