This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/16251] bogus default constructor for std::basic_iostream


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]