diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0386-2011-06-04-Jonathan-Wakely-jwakely.gcc-gmail.com.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0386-2011-06-04-Jonathan-Wakely-jwakely.gcc-gmail.com.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0386-2011-06-04-Jonathan-Wakely-jwakely.gcc-gmail.com.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0386-2011-06-04-Jonathan-Wakely-jwakely.gcc-gmail.com.patch new file mode 100644 index 0000000000..05967c768c --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0386-2011-06-04-Jonathan-Wakely-jwakely.gcc-gmail.com.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 6387f8d0edf17d5a0ffe499ab890a9a2d3a32940 Mon Sep 17 00:00:00 2001 | ||
2 | From: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Sat, 4 Jun 2011 16:20:55 +0000 | ||
4 | Subject: [PATCH] 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com> | ||
5 | |||
6 | PR c++/33840 | ||
7 | * g++.dg/diagnostic/bitfld2.C: New. | ||
8 | |||
9 | |||
10 | |||
11 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174645 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
12 | |||
13 | new file mode 100644 | ||
14 | index 0000000..10b7d9c | ||
15 | --- /dev/null | ||
16 | +++ b/gcc/testsuite/g++.dg/diagnostic/bitfld2.C | ||
17 | @@ -0,0 +1,9 @@ | ||
18 | +// PR c++/33840 | ||
19 | +// { dg-do compile } | ||
20 | + | ||
21 | +template<int> struct A | ||
22 | +{ | ||
23 | + struct {} : 2; // { dg-error "expected ';' after struct" } | ||
24 | +}; | ||
25 | +// { dg-error "ISO C.. forbids declaration" "" { target *-*-* } 6 } | ||
26 | +// { dg-error "ISO C.. prohibits anonymous" "" { target *-*-* } 6 } | ||
27 | -- | ||
28 | 1.7.0.4 | ||
29 | |||