Commit c35f57c5 by Marek Polacek Committed by Marek Polacek

re PR c++/68265 (Arbitrary syntactic nonsense silently accepted after 'int…

re PR c++/68265 (Arbitrary syntactic nonsense silently accepted after 'int (*){}' until the next close brace)

	PR c++/68265
	* g++.dg/parse/error62.C: New test.

From-SVN: r272525
parent 966e7f73
2019-06-20 Marek Polacek <polacek@redhat.com>
PR c++/68265
* g++.dg/parse/error62.C: New test.
2019-06-20 Steven G. Kargl <kargl@gcc.gnu.org> 2019-06-20 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/86587 PR fortran/86587
......
// PR c++/68265
int main()
{
int (*) {} // { dg-error "expected primary-expression" }
any amount of syntactic nonsense // { dg-error "not declared in this scope" }
on multiple lines, with *punctuation* and ++operators++ even...
will be silently discarded
until the next close brace
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment