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

Reid Kleckner <r...@google.com> changed:

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

--- Comment #3 from Reid Kleckner <r...@google.com> ---
A different way of looking at the reduction:

struct NameConflict {};
template <typename B> struct A : B {
  static void f(NameConflict p) {}
};
struct Base {
  struct NameConflict {
    typedef int type;
  };
};
int main() { A<Base>::f(Base::NameConflict()); }

Clang correctly uses '::NameConflict' instead of 'Base::NameConflict' for the
type of the parameter 'p', while MSVC does not.

We can't match MSVC's behavior without doing token based template
instantiation. Clang *needs* to be able to somehow parse the template prior to
instantiation. Even -fdelayed-template-parsing parses the template bodies prior
to instantiation.

Basically, this is not feasible.

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

Reply via email to