diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-03-09 20:34:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-03-09 20:34:10 +0100 |
commit | 8c30a5105f004e885ae81edbf9c1607547bd4ace (patch) | |
tree | ad67b3505d09efcb012641d1816d48aa0e3e2fdf /gcc/tree-nrv.c | |
parent | 9a9ba8d9b1292607bc97da712976937c4d81909d (diff) | |
download | gcc-8c30a5105f004e885ae81edbf9c1607547bd4ace.zip gcc-8c30a5105f004e885ae81edbf9c1607547bd4ace.tar.gz gcc-8c30a5105f004e885ae81edbf9c1607547bd4ace.tar.bz2 |
re PR c++/39371 (Incorrectly rejects switch((unsigned int)boolvar))
PR c++/39371
* semantics.c (finish_switch_cond): Don't call get_unwidened.
* decl.c (finish_case_label): Pass SWITCH_STMT_TYPE as 3rd argument
instead of TREE_TYPE (cond).
* g++.dg/opt/switch2.C: Add -w to dg-options.
* g++.dg/warn/Wswitch-1.C: Adjust expected warnings.
* g++.dg/warn/switch1.C: New test.
* g++.dg/other/switch3.C: New test.
From-SVN: r144732
Diffstat (limited to 'gcc/tree-nrv.c')
0 files changed, 0 insertions, 0 deletions