[LLVMbugs] [Bug 17698] New: Clang is very slow when computing certain diagnostics

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 25 12:09:14 PDT 2013


            Bug ID: 17698
           Summary: Clang is very slow when computing certain diagnostics
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ofv at wanadoo.es
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This test case:

#include "boost/asio.hpp"
double mainf();
int mainf() {
  foo(sdafo_2, 0);
  return 0;

takes this time to compile:

Time (seconds)  Command
6.8             clang -c -std=c++11 test.cpp
4.8             clang -c test.cpp

    (after replacing `sdafo_2' with `x')
1.0             clang -c test.cpp

    (after replacing `sdafo_2' with `o_2')
2.8             clang -c test.cpp

Note how Clang needs a long time to compute the diagnostic about `sdafo_2'
after reporting the diagnostic about the illegal overload of `mainf'.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131025/277d2117/attachment.html>

More information about the llvm-bugs mailing list