diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr65072.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/pr65072.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr65072.C b/gcc/testsuite/g++.dg/cpp0x/pr65072.C new file mode 100644 index 0000000000..b8fa8885dc --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr65072.C @@ -0,0 +1,14 @@ +// PR c++/65075 +// { dg-do compile { target c++11 } } +// { dg-options "-Wno-pedantic" } + +template <typename> class C +{ + struct + { + int i; + }; + auto operator*(const C m) -> decltype (m.i); +}; +void fn1 (const C<float>); +C<float> a; |