[llvm-bugs] [Bug 40608] unqualified name lookup crash

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 5 04:27:56 PST 2019


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

Paul Scharnofske <asynts at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #1 from Paul Scharnofske <asynts at gmail.com> ---
No longer reproducible:

$ clang++ --version
clang version 9.0.0 (https://github.com/llvm/llvm-project.git
81eec58a0d55acde898e861ad99a6b329c364764)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/bin

$ cat > main.cc <<EOF
template <typename T> struct A {
  template <bool U> void a() {}
};

template <typename T> struct B : A<T> {
  void b() {
    using A<T>::a;
    a<true>(); // crash
  }
};
EOF

$ clang++ -c main.cc
main.cc:8:13: error: expected expression
    a<true>(); // crash
            ^
1 error generated.

-- 
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/20190305/73f0975e/attachment-0001.html>


More information about the llvm-bugs mailing list