]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/89612 - ICE with member friend template with noexcept.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2019 20:24:48 +0000 (20:24 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2019 20:24:48 +0000 (20:24 +0000)
commitfacf139f378cc50e8e90f4bf86dd9425d9ff09a4
tree805536d2cc95687eeccf43591de8bbe41bb4972e
parente0ff520c86b79df960ea628256de14a621fd11b1
PR c++/89612 - ICE with member friend template with noexcept.
* pt.c (maybe_instantiate_noexcept): For function templates, use their
template result (function decl).  Don't set up local specializations.
Temporarily turn on processing_template_decl.  Update the template type
too.

* g++.dg/cpp0x/noexcept38.C: New test.
* g++.dg/cpp0x/noexcept39.C: New test.
* g++.dg/cpp1z/noexcept-type21.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270005 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept38.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/noexcept39.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/noexcept-type21.C [new file with mode: 0644]