From: Paolo Carlini Date: Mon, 22 Jul 2013 16:18:45 +0000 (+0000) Subject: re PR c++/52816 ([C++11] Access to private members inside decltype in the signature... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae4d1777954917faf876f15c4c6ea6fc6d2f35cc;p=gcc.git re PR c++/52816 ([C++11] Access to private members inside decltype in the signature of a member template causes access control error) 2013-07-22 Paolo Carlini PR c++/52816 * g++.dg/cpp0x/decltype56.C: New. From-SVN: r201136 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ed6f55b3a1e..327018fdd92 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,11 +1,15 @@ +2013-07-22 Paolo Carlini + + PR c++/52816 + * g++.dg/cpp0x/decltype56.C: New. + 2013-07-22 Kyrylo Tkachov * gcc.dg/pr53265.c: Correct line number in dg-message. 2013-07-22 Diego Novillo - * testsuite/g++.dg/pr57878.C: Do not force -m32. Use - target ilp32. + * g++.dg/pr57878.C: Do not force -m32. Use target ilp32. 2013-07-22 Georg-Johann Lay @@ -61,7 +65,8 @@ * gcc.target/sparc/struct-ret-check.c: Likewise. * gcc.target/x86_64/abi/test_struct_returning.c: Likewise. * gfortran.dg/c_ptr_tests_8_funcs.c: Likewise. - * objc-obj-c++-shared/objc-test-suite-next-encode-assist-impl.h: Likewise. + * objc-obj-c++-shared/objc-test-suite-next-encode-assist-impl.h: + Likewise. 2013-07-21 Thomas Koenig diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype56.C b/gcc/testsuite/g++.dg/cpp0x/decltype56.C new file mode 100644 index 00000000000..b44fad098fe --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype56.C @@ -0,0 +1,11 @@ +// PR c++/52816 +// { dg-do compile { target c++11 } } + +class c { + int f; + public: + template + decltype(f) m(A) const; +}; + +decltype(c{}.m(0)) i;