]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR middle-end/6196 (ICE in copy_to_mode_reg, at explow.c:711)
authorMark Mitchell <mark@codesourcery.com>
Fri, 29 Aug 2003 23:11:14 +0000 (23:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 29 Aug 2003 23:11:14 +0000 (23:11 +0000)
commitfc2b84778bb51750c841f53b1ba30950935cc901
tree9804609df286984088c3db599152fdef7af2c07f
parentd560a41c5c43524d82795ac4421eab2df6764e30
re PR middle-end/6196 (ICE in copy_to_mode_reg, at explow.c:711)

PR c++/6196
* pt.c (tsubst_copy_and_build): Correct handling of
address-of-label extension.
* semantics.c (finish_goto_stmt): The address of a label must go
through the lvalue-to-rvalue conversion.

PR c++/6196
* g++.dg/ext/label1.C: New test.
* g++.dg/ext/label2.C: Likewise.

From-SVN: r70932
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/label1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/label2.C [new file with mode: 0644]