diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0242-2011-05-09-Paolo-Carlini-paolo.carlini-oracle.com.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0242-2011-05-09-Paolo-Carlini-paolo.carlini-oracle.com.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0242-2011-05-09-Paolo-Carlini-paolo.carlini-oracle.com.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0242-2011-05-09-Paolo-Carlini-paolo.carlini-oracle.com.patch new file mode 100644 index 0000000000..3bcadabc77 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0242-2011-05-09-Paolo-Carlini-paolo.carlini-oracle.com.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 8f6d830742d2c5d41877ea601a91bccafe59f905 Mon Sep 17 00:00:00 2001 | ||
2 | From: paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Mon, 9 May 2011 23:24:21 +0000 | ||
4 | Subject: [PATCH] 2011-05-09 Paolo Carlini <paolo.carlini@oracle.com> | ||
5 | |||
6 | PR c++/48522 | ||
7 | * g++.dg/cpp0x/pr48522.C: New. | ||
8 | |||
9 | |||
10 | |||
11 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173599 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
12 | |||
13 | new file mode 100644 | ||
14 | index 0000000..1543d8a | ||
15 | --- /dev/null | ||
16 | +++ b/gcc/testsuite/g++.dg/cpp0x/pr48522.C | ||
17 | @@ -0,0 +1,24 @@ | ||
18 | +// { dg-options "-std=c++0x" } | ||
19 | + | ||
20 | +template <typename T> | ||
21 | +struct Handle | ||
22 | +{ | ||
23 | + Handle(T& t); | ||
24 | +}; | ||
25 | + | ||
26 | +template<class T> | ||
27 | +struct Class { | ||
28 | + struct Struct {} data; | ||
29 | + void f(); | ||
30 | + void g(); | ||
31 | +}; | ||
32 | + | ||
33 | +template<class T> | ||
34 | +void Class<T>::f() { | ||
35 | + Handle< decltype((data)) > handle(data); | ||
36 | +} | ||
37 | + | ||
38 | +template<class T> | ||
39 | +void Class<T>::g() { | ||
40 | + Handle< decltype((data)) > handle(data); | ||
41 | +} | ||
42 | -- | ||
43 | 1.7.0.4 | ||
44 | |||