public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/110675] New: Compilation fails for a simple C++ program
@ 2023-07-15 12:30 gcc.gnu.org at aryanc403 dot com
  2023-07-15 16:11 ` [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails) pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gcc.gnu.org at aryanc403 dot com @ 2023-07-15 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110675
           Summary: Compilation fails for a simple C++ program
           Product: gcc
           Version: 13.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc.gnu.org at aryanc403 dot com
  Target Milestone: ---

Created attachment 55549
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55549&action=edit
All files (.cpp, .ii, .s) inclusing logs.zip

Code
```
#pragma GCC target ("avx2")
#include <set>

int main(void) {
    std::set<int> s;
    return 0;
}
```

Compilation command -
```
g++ -static -std=c++20 a.cpp
```

Expected behaviour - Program compiles successfully.            
Actual behaviour - Program fails to compile.             

Compiler logs (Detailed logs attached) -
```
/usr/include/c++/13.1.1/bits/allocator.h: In destructor ‘constexpr
std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>,
std::allocator<int> >::_Rb_tree_impl<std::less<int>, true>::~_Rb_tree_impl()’:
/usr/include/c++/13.1.1/bits/allocator.h:184:7: error: inlining failed in call
to ‘always_inline’ ‘constexpr std::allocator< <template-parameter-1-1>
>::~allocator() noexcept [with _Tp = std::_Rb_tree_node<int>]’: target specific
option mismatch
  184 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
/usr/include/c++/13.1.1/bits/stl_tree.h:662:16: note: called from here
  662 |         struct _Rb_tree_impl
```

System - Arch Linux (fully updated 2-3 days ago)

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

* [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)
  2023-07-15 12:30 [Bug libstdc++/110675] New: Compilation fails for a simple C++ program gcc.gnu.org at aryanc403 dot com
@ 2023-07-15 16:11 ` pinskia at gcc dot gnu.org
  2023-07-15 17:23 ` xry111 at gcc dot gnu.org
  2023-07-15 22:41 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-15 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |110334

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
See bug 110334 comment #19


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110334
[Bug 110334] [13/14 Regresssion] unused functions not eliminated before LTO
streaming

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

* [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)
  2023-07-15 12:30 [Bug libstdc++/110675] New: Compilation fails for a simple C++ program gcc.gnu.org at aryanc403 dot com
  2023-07-15 16:11 ` [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails) pinskia at gcc dot gnu.org
@ 2023-07-15 17:23 ` xry111 at gcc dot gnu.org
  2023-07-15 22:41 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-07-15 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Clearly related to PR109753, but I'm not sure if it's OK to just mark it as a
dup.

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

* [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails)
  2023-07-15 12:30 [Bug libstdc++/110675] New: Compilation fails for a simple C++ program gcc.gnu.org at aryanc403 dot com
  2023-07-15 16:11 ` [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails) pinskia at gcc dot gnu.org
  2023-07-15 17:23 ` xry111 at gcc dot gnu.org
@ 2023-07-15 22:41 ` xry111 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-07-15 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Now I think it's definitely PR109753 (considering the simple reduced test case
in PR109753)...

*** This bug has been marked as a duplicate of bug 109753 ***

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

end of thread, other threads:[~2023-07-15 22:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-15 12:30 [Bug libstdc++/110675] New: Compilation fails for a simple C++ program gcc.gnu.org at aryanc403 dot com
2023-07-15 16:11 ` [Bug target/110675] Using std::set with avx2 pragma is broken on latest gcc version (compilation fails) pinskia at gcc dot gnu.org
2023-07-15 17:23 ` xry111 at gcc dot gnu.org
2023-07-15 22:41 ` xry111 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).