This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/41769] New: Parameter names not restricted to identifiers


GCC compiles and runs this code "correctly":

void f(void operator+()) { operator+(); } 
void g() { } 
int main() { f(g); }

It should reject the parameter name, because "operator+" is not an identifier.


-- 
           Summary: Parameter names not restricted to identifiers
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schaub-johannes at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41769


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]