[LLVMbugs] [Bug 20708] New: Possible false positive in undefined-inline with __alloctr_rebind_helper

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 20 02:26:19 PDT 2014


            Bug ID: 20708
           Summary: Possible false positive in undefined-inline with
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Axel.Naumann at cern.ch
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


with the attached file.h (excerpt of bits/alloc_traits.h from libstdc++ of GCC
4.9.1) and clang r212179 I get

$ clang -Wall -fsyntax-only -x c++ -std=c++11 file.h
file.h:28:3: warning: inline function '__alloctr_rebind_helper<int,
float>::_S_chk<int, float>' is not defined [-Wundefined-inline]
file.h:31:32: note: used here
              using __type = decltype(_S_chk<_Alloc, _Tp>(nullptr));
1 warning generated.

I don't think decltype should require a definition; I don't see how a
definition could change the decltype. It compiles just fine without the

As I said this happens in the wild with libstdc++ of GCC 4.9.1 (installed side
by side to the system compiler version) - where we still need to figure out why
clang thinks they are not system headers. But that shouldn't affect this issue.



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/20140820/6182f22c/attachment.html>

More information about the llvm-bugs mailing list