[llvm-bugs] [Bug 26962] Default template arguments and friend declarations don't mix

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 26 10:34:53 PDT 2017


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

Serge Pavlov <sepavloff at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sepavloff at gmail.com
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Serge Pavlov <sepavloff at gmail.com> ---
It seems this problem has already been fixed, ToT (r309118) produces:

26962.cpp:13:36: warning: control reaches end of non-void function
[-Wreturn-type]
      std::shared_ptr<A<0>> foo() {}
                                   ^
26962.cpp:19:10: note: in instantiation of function template specialization
'hydi::foo<double>' requested
      here
  *hydi::foo();
         ^
1 warning 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/20170726/cc278dce/attachment.html>


More information about the llvm-bugs mailing list