[Bug c/93357] New: Misleading diagnostic for complex int
asolokha at gmx dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 21 15:06:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93357
Bug ID: 93357
Summary: Misleading diagnostic for complex int
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-10.0.0-alpha20200119 snapshot (g:3684bbb022cd75da55e1457673f269980aa12cdf)
and gcc 9.2.0 emit misleading diagnostic for the following testcase:
void
tp (complex int pe)
{
}
% gcc -c comvaztb.c
comvaztb.c:2:5: error: unknown type name 'complex'; did you mean 'complex int'?
2 | tp (complex int pe)
| ^~~~~~~
| complex int
Suggested correction obviously cannot be applied.
More information about the Gcc-bugs
mailing list