public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "unlvsur at live dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/101093] New: C++20 Module ICE cannot define 'enum class std::align_val_t' in different module
Date: Wed, 16 Jun 2021 11:02:55 +0000	[thread overview]
Message-ID: <bug-101093-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 101093
           Summary: C++20 Module ICE cannot define 'enum class
                    std::align_val_t' in different module
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

Created attachment 51030
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51030&action=edit
preprocess file

D:\hg\fast_io\src>g++ -c fast_io.cc -fmodules-ts -std=c++20 -s -flto
-march=native -Ofast
In file included from
d:\x86_64-w64-mingw32\include\c++\12.0.0\bits\stl_iterator.h:82,
                 from ../include/fast_io_core_impl/freestanding/iterator.h:6,
                 from ../include/fast_io_core_impl/freestanding/impl.h:12,
                 from ../include/fast_io_core.h:22,
                 from ../include/fast_io_freestanding.h:12,
                 from ../include/fast_io_hosted.h:17,
                 from ../include/fast_io.h:9,
                 from fast_io.cc:6:
d:\x86_64-w64-mingw32\include\c++\12.0.0\new:89:27: error: cannot define 'enum
class std::align_val_t' in different module
   89 |   enum class align_val_t: size_t {};
      |                           ^~~~~~
<built-in>: note: declared here
d:\x86_64-w64-mingw32\include\c++\12.0.0\new:89:27: internal compiler error:
tree check: expected class 'type', have 'exceptional' (error_mark) in
start_enum, at cp/decl.c:15807
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

             reply	other threads:[~2021-06-16 11:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 11:02 unlvsur at live dot com [this message]
2024-03-11 21:21 ` [Bug c++/101093] " ppalka at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-101093-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).