This is the mail archive of the gcc-patches@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] |
In C++14 and below, the exception-specification is not part of a function type, so we need to drop it from template arguments; otherwise, all uses of a particular template instantiation get the exception specification that the first use happened to have. This patch regresses the -Wnoexcept-type warning, as in this case we discard the exception-specification long before we get to mangling. I explored fixing this for a while, but it seems to require a whole new mechanism for propagating warnings through overload resolution. And this warning doesn't seem to be as important as I initially thought. Tested x86_64-pc-linux-gnu, applying to trunk. Jason
Attachment:
77369.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |