diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2014-06-11 10:24:55 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-06-11 10:24:55 +0000 |
commit | 83f14a64efe8bc80360892e9de824644a74d84fd (patch) | |
tree | a08e22db729cfe7ec0ab6ba665760dafad03aad4 | |
parent | 698ff10718696a7533db4364b0d736237ff73a7d (diff) | |
download | gcc-83f14a64efe8bc80360892e9de824644a74d84fd.zip gcc-83f14a64efe8bc80360892e9de824644a74d84fd.tar.gz gcc-83f14a64efe8bc80360892e9de824644a74d84fd.tar.bz2 |
re PR c++/34049 (Parentheses-enclosed expression.)
2014-06-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/34049
* g++.dg/parse/pr34049.C: New.
From-SVN: r211445
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/parse/pr34049.C | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 318fa1a..3c066a9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-06-11 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/34049 + * g++.dg/parse/pr34049.C: New. + 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com> * gcc.c-torture/execute/pr61306-1.c: New test. diff --git a/gcc/testsuite/g++.dg/parse/pr34049.C b/gcc/testsuite/g++.dg/parse/pr34049.C new file mode 100644 index 0000000..701a119 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/pr34049.C @@ -0,0 +1,12 @@ +// PR c++/34049 + +struct foo +{ + int operator[](int) const { return 0; } +}; + +int main() +{ + (foo()[0]); + return 0; +} |