[LLVMbugs] [Bug 8368] Compiler getting confused when using templated function from the return value of a function of a member

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 20 18:45:09 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=8368

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-02-20 20:45:09 CST ---
The example in comment#0 is still incorrectly rejected in my testing at
r151017. The example in bug#10741 is still not rejected.

Another testcase... we should not reject this:

struct A { typedef int T; };
template<int> struct U { typedef int T; };
template<typename> struct S {
  A a;
  int n = decltype(a)::T();
  int m = U<sizeof(a)>::T();
};
S<char> s;

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list