* [C++, committed] Add c++/48522 testcase
@ 2011-05-10 6:49 Paolo Carlini
0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-05-10 6:49 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
Hi,
I committed the testcase to mainline and 4_6-branch and closed the PR as
already fixed.
Tested x86_64-linux.
Paolo.
////////////////////
[-- Attachment #2: CL_48522 --]
[-- Type: text/plain, Size: 102 bytes --]
2011-05-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/48522
* g++.dg/cpp0x/pr48522.C: New.
[-- Attachment #3: patch_48522 --]
[-- Type: text/plain, Size: 576 bytes --]
Index: g++.dg/cpp0x/pr48522.C
===================================================================
--- g++.dg/cpp0x/pr48522.C (revision 0)
+++ g++.dg/cpp0x/pr48522.C (revision 0)
@@ -0,0 +1,24 @@
+// { dg-options "-std=c++0x" }
+
+template <typename T>
+struct Handle
+{
+ Handle(T& t);
+};
+
+template<class T>
+struct Class {
+ struct Struct {} data;
+ void f();
+ void g();
+};
+
+template<class T>
+void Class<T>::f() {
+ Handle< decltype((data)) > handle(data);
+}
+
+template<class T>
+void Class<T>::g() {
+ Handle< decltype((data)) > handle(data);
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-09 23:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 6:49 [C++, committed] Add c++/48522 testcase Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).