]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid ICE on pmf{} in template.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Apr 2019 16:25:59 +0000 (16:25 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Apr 2019 16:25:59 +0000 (16:25 +0000)
commitb7a39acf193fd19e41502d5e2cf6b3fa8b44dbac
tree11dd1e42b504792ecf05b7fcc542b4d3d9c3d619
parent9429be6de0fe719111ef385f5dc7e3d0556effe4
Avoid ICE on pmf{} in template.

Now that we return the original CONSTRUCTOR from finish_compound_literal,
the call to null_member_pointer_value_p in tsubst_copy_and_build was getting
confused because the CONSTRUCTOR was still empty rather than a valid PMF
value.

* call.c (null_member_pointer_value_p): Handle an empty CONSTRUCTOR
of PMF type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270324 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/initlist-pmf1.C [new file with mode: 0644]