[cfe-commits] r55158 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaExpr.cpp

Neil Booth neil at daikokuya.co.uk
Sat Aug 23 18:08:17 PDT 2008


Daniel Dunbar wrote:-

> I believe this or a related commit is causing regressions in the LLVM test
> suite. My nightly tester (http://llvm.org/nightlytest/test.php?machine=308&night=7260)
> is showing errors in
> Benchmarks/Dhrystone/dry
> Benchmarks/Dhrystone/fldry
> Benchmarks/MallocBench/cfrac/cfrac
> Benchmarks/McCat/18-imp/imp
> 
> and I minimized the cfrac failure to the following test case:
> --
> typedef unsigned short posit;
> 
> extern void palloc();
> 
> void palloc(posit size) {
> }
> --
> ddunbar at ddunbar2:cfrac$ clang Output/pops.E
> Output/pops.E:5:6: error: conflicting types for 'palloc'
> void palloc(posit size) {
>      ^
> Output/pops.E:3:13: error: previous declaration is here
> extern void palloc();
>             ^
> 2 diagnostics generated.
> --
> 
> Can you investigate?

That source code is invalid as clang claims; perhaps the benchmarks
should be run in some kind of relaxed mode?

Neil.



More information about the cfe-commits mailing list