https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102770
Bug ID: 102770
Summary: gcc does not show conflicting function types in detail
when line control is used
Product: gcc
Version: 8.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: fiala at hit dot bme.hu
Target Milestone: ---
For the following two-line C code
int f(void);
char f(void);
gcc -Wall prints the following compiler error:
source.c:2:6: error: conflicting types for 'f'
char f(void);
^
source.c:1:5: note: previous declaration of 'f' was here
int f(void);
^
However, when line control is used
#line 5
int f(void);
char f(void);
only the following short error message is written:
source.c:6:6: error: conflicting types for 'f'
source.c:5:5: note: previous declaration of 'f' was here