public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error
@ 2020-08-01 11:51 hewillk at gmail dot com
  2020-08-01 11:55 ` [Bug c++/96408] " hewillk at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2020-08-01 11:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96408
           Summary: C++20 new attribute [[no_unique_address]] occurs the
                    internal compile error
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

Using built-in specs.
COLLECT_GCC=/usr/local/bin/gcc-10
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/10.1.0/libexec/gcc/x86_64-apple-darwin17/10.1.0/lto-wrapper
Target: x86_64-apple-darwin17
Configured with: ../configure --build=x86_64-apple-darwin17
--prefix=/usr/local/Cellar/gcc/10.1.0
--libdir=/usr/local/Cellar/gcc/10.1.0/lib/gcc/10 --disable-nls
--enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran
--program-suffix=-10 --with-gmp=/usr/local/opt/gmp
--with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc
--with-isl=/usr/local/opt/isl --with-system-zlib --with-pkgversion='Homebrew
GCC 10.1.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues
--disable-multilib SED=/usr/bin/sed
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.1.0 (Homebrew GCC 10.1.0) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++2a'
'-mmacosx-version-min=10.13.0' '-asm_macosx_version_min=10.13' '-mtune=core2'
 /usr/local/Cellar/gcc/10.1.0/libexec/gcc/x86_64-apple-darwin17/10.1.0/cc1plus
-E -quiet -v -D__DYNAMIC__ main.cpp -fPIC -mmacosx-version-min=10.13.0
-mtune=core2 -std=c++2a -fpch-preprocess -o main.ii
ignoring duplicate directory "/usr/local/include"
ignoring nonexistent directory
"/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/../../../../../../x86_64-apple-darwin17/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/local/include

/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/../../../../../../include/c++/10.1.0

/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/../../../../../../include/c++/10.1.0/x86_64-apple-darwin17

/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/../../../../../../include/c++/10.1.0/backward

/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/include
 /usr/local/Cellar/gcc/10.1.0/include

/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/gcc/x86_64-apple-darwin17/10.1.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++2a'
'-mmacosx-version-min=10.13.0' '-asm_macosx_version_min=10.13' '-mtune=core2'
 /usr/local/Cellar/gcc/10.1.0/libexec/gcc/x86_64-apple-darwin17/10.1.0/cc1plus
-fpreprocessed main.ii -fPIC -quiet -dumpbase main.cpp
-mmacosx-version-min=10.13.0 -mtune=core2 -auxbase main -std=c++2a -version -o
main.s
GNU C++17 (Homebrew GCC 10.1.0) version 10.1.0 (x86_64-apple-darwin17)
        compiled by GNU C version 10.1.0, GMP version 6.2.0, MPFR version
4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++17 (Homebrew GCC 10.1.0) version 10.1.0 (x86_64-apple-darwin17)
        compiled by GNU C version 10.1.0, GMP version 6.2.0, MPFR version
4.0.2, MPC version 1.1.0, isl version isl-0.22.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: b1074358e29f54f1a357a06623845700
during RTL pass: expand
main.cpp: In copy constructor 'vector::vector(const vector&)':
main.cpp:7:109: internal compiler error: in assign_temp, at function.c:984
    7 |     :
alloc_(std::allocator_traits<std::allocator<int>>::select_on_container_copy_construction(other.alloc_))
{ }
      |                                                                        
                                    ^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions.

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

* [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs the internal compile error
  2020-08-01 11:51 [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error hewillk at gmail dot com
@ 2020-08-01 11:55 ` hewillk at gmail dot com
  2020-08-01 12:07 ` hewillk at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2020-08-01 11:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
Created attachment 48976
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48976&action=edit
the preprocessed file

gcc -v -save-temps -std=c++20 main.cpp

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

* [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs the internal compile error
  2020-08-01 11:51 [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error hewillk at gmail dot com
  2020-08-01 11:55 ` [Bug c++/96408] " hewillk at gmail dot com
@ 2020-08-01 12:07 ` hewillk at gmail dot com
  2020-08-01 14:52 ` [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs " hewillk at gmail dot com
  2020-08-07 16:01 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2020-08-01 12:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from 康桓瑋 <hewillk at gmail dot com> ---
Created attachment 48979
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48979&action=edit
the source file

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

* [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs internal compile error
  2020-08-01 11:51 [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error hewillk at gmail dot com
  2020-08-01 11:55 ` [Bug c++/96408] " hewillk at gmail dot com
  2020-08-01 12:07 ` hewillk at gmail dot com
@ 2020-08-01 14:52 ` hewillk at gmail dot com
  2020-08-07 16:01 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2020-08-01 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from 康桓瑋 <hewillk at gmail dot com> ---
Live example:
https://godbolt.org/z/vMT5Md

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

* [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs internal compile error
  2020-08-01 11:51 [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error hewillk at gmail dot com
                   ` (2 preceding siblings ...)
  2020-08-01 14:52 ` [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs " hewillk at gmail dot com
@ 2020-08-07 16:01 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2020-08-07 16:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Looks like a duplicate of PR 93711

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

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

end of thread, other threads:[~2020-08-07 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 11:51 [Bug c++/96408] New: C++20 new attribute [[no_unique_address]] occurs the internal compile error hewillk at gmail dot com
2020-08-01 11:55 ` [Bug c++/96408] " hewillk at gmail dot com
2020-08-01 12:07 ` hewillk at gmail dot com
2020-08-01 14:52 ` [Bug c++/96408] C++20 new attribute [[no_unique_address]] occurs " hewillk at gmail dot com
2020-08-07 16:01 ` 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).