aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-03-09 19:34:10 +0000
committerJakub Jelinek <jakub@redhat.com>2009-03-09 19:34:10 +0000
commit436dfb370ad1a0f71dab92df79d14a477ec333d0 (patch)
treead67b3505d09efcb012641d1816d48aa0e3e2fdf /gcc/cp/ChangeLog
parent20b83462f2f8bc9095548eba5517890e74a41764 (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@144732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r--gcc/cp/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c4b151b79a8..e4161c504cb 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-09 Jakub Jelinek <jakub@redhat.com>
+
+ 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).
+
2009-03-08 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39060