[Bug c++/105040] snfit-2.4.0 fails to build because of /usr/include/c++/7/ostream:682:5: error: no type named 'type' in 'struct std::enable_if<false, std::basic_ostream<char>&>'

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 24 05:50:41 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105040

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The code is invalid.
The simple fix is todo:
    stringstream message;
    message << "ERROR Salt2ExtinctionLaw::Read unknown version " << version;
    cerr << message.str() << endl;


More information about the Gcc-bugs mailing list