re PR c++/67065 ([DR 1886] Missing diagnostics for ill-formed program with main varia...
authorPaolo Carlini <paolo@gcc.gnu.org>
Thu, 20 Aug 2015 10:18:03 +0000 (10:18 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 20 Aug 2015 10:18:03 +0000 (10:18 +0000)
commitdfd71aba57811c28d21a49909d9c6b96f5ae05ea
tree3c00edc44d1918711586f8f1529d6b2d37f4c7bf
parent58df0b91cbca6814b243256bb7900341b5316d14
re PR c++/67065 ([DR 1886] Missing diagnostics for ill-formed program with main variable instead of function)

/cp
2015-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67065
* decl.c (grokvardecl): Reject 'main' as global variable.

/testsuite
2015-08-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67065
* g++.dg/other/pr67065.C: New.

From-SVN: r227027
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr67065.C [new file with mode: 0644]