public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/101236] New: [12 Regression] bits/unique_ptr.h:658:48: error: invalid use of incomplete type ‘class llvm::APFloat’
@ 2021-06-28  8:17 marxin at gcc dot gnu.org
  2021-06-28  8:18 ` [Bug libstdc++/101236] [12 Regression] bits/unique_ptr.h:658:48: error: invalid use of incomplete type ‘class llvm::APFloat’ since r12-1778-g17bc3848e065c0980523e1a1592f2f03b24b4f1c marxin at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-28  8:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101236
           Summary: [12 Regression] bits/unique_ptr.h:658:48: error:
                    invalid use of incomplete type ‘class llvm::APFloat’
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jwakely at redhat dot com
  Target Milestone: ---

Created attachment 51068
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51068&action=edit
test-case

Happens when one builds something that uses libLLVM:

$ g++ AggregateToScalar.ii -c
In file included from /home/marxin/bin/gcc2/include/c++/12.0.0/memory:76,
                 from /usr/include/llvm/ADT/SmallVector.h:30,
                 from /usr/include/llvm/ADT/ArrayRef.h:14,
                 from /usr/include/llvm/ADT/DenseMapInfo.h:18,
                 from /usr/include/llvm/ADT/DenseMap.h:16,
                 from
/home/marxin/Programming/cvise/clang_delta/AggregateToScalar.h:16,
                 from
/home/marxin/Programming/cvise/clang_delta/AggregateToScalar.cpp:15:
/home/marxin/bin/gcc2/include/c++/12.0.0/bits/unique_ptr.h: In instantiation of
‘typename std::add_lvalue_reference<_Tp>::type std::unique_ptr<_Tp [],
_Dp>::operator[](std::size_t) const [with _Tp = llvm::APFloat; _Dp =
std::default_delete<llvm::APFloat []>; typename
std::add_lvalue_reference<_Tp>::type = llvm::APFloat&; std::size_t = long
unsigned int]’:
/usr/include/llvm/ADT/APFloat.h:634:40:   required from here
/home/marxin/bin/gcc2/include/c++/12.0.0/bits/unique_ptr.h:658:48: error:
invalid use of incomplete type ‘class llvm::APFloat’
  658 |      
noexcept(noexcept(std::declval<pointer>()[std::declval<size_t&>()]))
      |                         ~~~~~~~~~~~~~~~~~~~~~~~^
In file included from /usr/include/clang/AST/APValue.h:17,
                 from /usr/include/clang/AST/Decl.h:16,
                 from /usr/include/clang/AST/Attr.h:18,
                 from /usr/include/clang/AST/RecursiveASTVisitor.h:16,
                 from
/home/marxin/Programming/cvise/clang_delta/AggregateToScalar.cpp:19:
/usr/include/llvm/ADT/APFixedPoint.h:25:7: note: forward declaration of ‘class
llvm::APFloat’
   25 | class APFloat;
      |       ^~~~~~~

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

end of thread, other threads:[~2021-12-27 15:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  8:17 [Bug libstdc++/101236] New: [12 Regression] bits/unique_ptr.h:658:48: error: invalid use of incomplete type ‘class llvm::APFloat’ marxin at gcc dot gnu.org
2021-06-28  8:18 ` [Bug libstdc++/101236] [12 Regression] bits/unique_ptr.h:658:48: error: invalid use of incomplete type ‘class llvm::APFloat’ since r12-1778-g17bc3848e065c0980523e1a1592f2f03b24b4f1c marxin at gcc dot gnu.org
2021-06-28  9:13 ` rguenth at gcc dot gnu.org
2021-06-28  9:41 ` redi at gcc dot gnu.org
2021-06-28 10:18 ` marxin at gcc dot gnu.org
2021-06-28 10:25 ` redi at gcc dot gnu.org
2021-06-28 11:51 ` redi at gcc dot gnu.org
2021-06-28 13:23 ` cvs-commit at gcc dot gnu.org
2021-06-28 13:27 ` redi at gcc dot gnu.org
2021-07-02 11:15 ` cvs-commit at gcc dot gnu.org
2021-12-27 15:02 ` ppalka 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).