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
This commit is contained in:
Paolo Carlini 2014-06-11 10:24:55 +00:00 committed by Paolo Carlini
parent 698ff10718
commit 83f14a64ef
2 changed files with 17 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1,12 @@
// PR c++/34049
struct foo
{
int operator[](int) const { return 0; }
};
int main()
{
(foo()[0]);
return 0;
}