Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000160 [cparser] parser minor always 2015-10-29 15:34 2015-10-29 16:00
Reporter jonashaag View Status public  
Assigned To
Priority normal Resolution open  
Status confirmed   Product Version
Summary 0000160: No error if redefining parameter
Description $ cat redefine.c
void f(int a, int a);


$ clang redefine.c
redefine.c:1:19: error: redefinition of parameter 'a'
void f(int a, int a);
                  ^
redefine.c:1:12: note: previous declaration is here
void f(int a, int a);
           ^
1 error generated.


$ cparser -Wall -Wextra redefine.c
[no error or warning]

Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000236)
UniQ (developer)
2015-10-29 16:00

Added a corresponding test to our testsuite: C/should_fail/paramredef2.c

- Issue History
Date Modified Username Field Change
2015-10-29 15:34 jonashaag New Issue
2015-10-29 16:00 UniQ Note Added: 0000236
2015-10-29 16:00 UniQ Status new => confirmed


Mantis 1.1.5[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker