[llvm-bugs] [Bug 37719] clang fail to compile the attached code (Maybe recurring?)

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 7 09:51:52 PDT 2018


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

David Blaikie <dblaikie at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dblaikie at gmail.com
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
Looks fine to me - the original bug was about crashing, not about erroring.

GCC accepts it, but I don't see any reason it should - looks erroneous to me.

Clang rejects it a bit earlier in this case than in the case when it's not an
operator (if it's a named member function like 'foo'). GCC doesn't even reject
this when the template is instantiated, though Clang would reject it on
instantiation once it finds out that 'foo' is a member function rather than a
member type.

-- 
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/20180607/d2f96958/attachment.html>


More information about the llvm-bugs mailing list