PR c++/6196
commit0eb004033027f53a641f56c869669cee5656d892
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2003 23:11:14 +0000 (29 23:11 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Aug 2003 23:11:14 +0000 (29 23:11 +0000)
tree9804609df286984088c3db599152fdef7af2c07f
parent9197503feb1ae04f7e5b952003aa94aeb0390419
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70932 138bc75d-0d04-0410-961f-82ee72b054a4
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]