[llvm-bugs] [Bug 30739] New: assertion failure on ambiguous qualifier in dependent member access, "Cannot handle ambiguities here yet"

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 19 13:04:46 PDT 2016


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

            Bug ID: 30739
           Summary: assertion failure on ambiguous qualifier in dependent
                    member access, "Cannot handle ambiguities here yet"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Testcase:

inline namespace N { struct X { int n; }; }
inline namespace M { struct X {}; }
struct Y : N::X {};
template<typename T> int f(T y) { return y.X::n; }

Result:

clang-3.5: lib/Sema/SemaCXXScopeSpec.cpp:370: clang::NamedDecl
*clang::Sema::FindFirstQualifierInScope(clang::Scope *,
clang::NestedNameSpecifier *): Assertion `!Found.isAmbiguous() && "Cannot
handle ambiguities here yet"' failed.

-- 
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/20161019/686d2019/attachment.html>


More information about the llvm-bugs mailing list