https://bugs.llvm.org/show_bug.cgi?id=40143
Bug ID: 40143
Summary: Clang rejects well-formed C99 program using [*] in
typeredefinition.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: anders.granlun...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Test program (prog.c):
int main()
{
typedef void t(int (*)[*]);
typedef void t(int (*)[*]);
}
Compilation command line:
clang prog.c -Wall -Wextra -std=c11 -pedantic-errors
Observed behaviour:
The following error message is outputed:
error: typedef redefinition with different types ('void (int (*)[*])' vs
'void (int (*)[*])')
Expected behaviour:
No error message. The two types are equal and not a variably modified type,
so
the typeredefinition should be allowed according to the standard.
Note:
gcc works does not give any error messages.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs