public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
@ 2020-07-06 16:43 redi at gcc dot gnu.org
  2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2020-07-06 16:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083

            Bug ID: 96083
           Summary: Clang can't compile <ext/throw_allocator.h>: error:
                    use of undeclared identifier '__builtin_sprintf'
           Product: gcc
           Version: 10.1.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

$ clang++   -include bits/extc++.h -x c++ - </dev/null
In file included from <built-in>:1:
In file included from
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/x86_64-redhat-linux/bits/extc++.h:69:
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:316:7:
error: use of undeclared identifier '__builtin_sprintf'
      __builtin_sprintf(buf, "%lu", l);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:321:7:
error: use of undeclared identifier '__builtin_sprintf'
      __builtin_sprintf(buf, "%lu", l);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:325:7:
error: use of undeclared identifier '__builtin_sprintf'
      __builtin_sprintf(buf, "%p", ref.first);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:338:7:
error: use of undeclared identifier '__builtin_sprintf'
      __builtin_sprintf(buf, "%lu", l);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:342:7:
error: use of undeclared identifier '__builtin_sprintf'
      __builtin_sprintf(buf, "%p", ref.first);
      ^
/usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/throw_allocator.h:575:4:
error: use of undeclared identifier '__builtin_sprintf'
          __builtin_sprintf(buf, "%f", random);
          ^
6 errors generated.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-11 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 16:43 [Bug libstdc++/96083] New: Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf' redi at gcc dot gnu.org
2020-12-16 14:33 ` [Bug libstdc++/96083] " cvs-commit at gcc dot gnu.org
2021-01-11 15:04 ` cvs-commit at gcc dot gnu.org
2021-01-11 17:52 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).