[Bug c++/67065] [DR 1886] Missing diagnostics for ill-formed program with main variable instead of function

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 20 10:18:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67065

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Aug 20 10:18:03 2015
New Revision: 227027

URL: https://gcc.gnu.org/viewcvs?rev=227027&root=gcc&view=rev
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/other/pr67065.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list