https://bugs.llvm.org/show_bug.cgi?id=41189

            Bug ID: 41189
           Summary: LegalizationArtifactCombiner.h contains: "using
                    namespace llvm::MIPatternMatch;" in the root namespace
           Product: new-bugs
           Version: 8.0
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: bique.alexan...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

Hi,

I wonder if having "using namespace" in the root namespace is safe. Probably
not.

I think it is responsible for a conflict between OSX's TimeRecord and the one
in LLVM:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:604:16:
error: reference to 'TimeRecord' is ambiguous
typedef struct TimeRecord               TimeRecord;
               ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/MacTypes.h:599:8:
note: candidate found by name lookup is 'TimeRecord'
struct TimeRecord {
       ^
In file included from
/Users/buildbot/jenkins/workspace/bw-studio-osx-release/float/app/nitro/src/main/cpp/Jit.cpp:11:
In file included from ../../app/nitro/src/main/include/nitro/LLVM.h:34:
In file included from
../../../target/dependencies/include/llvm/Passes/StandardInstrumentations.h:21:
In file included from
../../../target/dependencies/include/llvm/IR/PassTimingInfo.h:23:
../../../target/dependencies/include/llvm/Support/Timer.h:27:7: note: candidate
found by name lookup is 'llvm::TimeRecord'
class TimeRecord {
      ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to