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:
parent
698ff10718
commit
83f14a64ef
@ -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.
|
||||
|
12
gcc/testsuite/g++.dg/parse/pr34049.C
Normal file
12
gcc/testsuite/g++.dg/parse/pr34049.C
Normal file
@ -0,0 +1,12 @@
|
||||
// PR c++/34049
|
||||
|
||||
struct foo
|
||||
{
|
||||
int operator[](int) const { return 0; }
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
(foo()[0]);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user