[cfe-dev] LLVM 3.0rc3 Testing Beginning

Jay Foad jay.foad at gmail.com
Tue Nov 15 01:53:29 PST 2011


On 8 November 2011 15:18, Jay Foad <jay.foad at gmail.com> wrote:
> I've done a "make -j2 all check-all", llvm + clang, Release build, on
> Ubuntu Linux 11.04 x86_64. I got one test failure:
>
> Failing Tests (1):
>    Clang-Unit :: AST/Release/ASTTests/APValue.Diagnostics

For the record, I had a closer look at this. It seems to be a bug in
my system compiler on Ubuntu 11.04, gcc (Ubuntu/Linaro 4.5.2-8ubuntu4)
4.5.2.

In this code from unittests/AST/APValueTest.cpp:

  template<typename T>
  std::string operator()(const T& value) {
    Diag.Report(diag_just_format) << value;
    return LastDiagnostic.get().str();
  }

... the compiler is failing to call the destructor for the temporary
DiagnosticBuilder returned from Diag.Report(diag_just_format).

If I compile the test with gcc 4.6.1 (which I built from source) the
problem goes away.

Jay.




More information about the cfe-dev mailing list