public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102576] New: [modules] Importing <initializer_list> doesn't permit implicit uses
@ 2021-10-03 14:24 johelegp at gmail dot com
  2021-10-03 14:37 ` [Bug c++/102576] " johelegp at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: johelegp at gmail dot com @ 2021-10-03 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102576
           Summary: [modules] Importing <initializer_list> doesn't permit
                    implicit uses
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

A use like

```C++
import<initializer_list>;

constexpr void test() {
  for (const int i : {0, 1, -1}) { }
}
```

results in an error like

```
error: deducing from brace-enclosed initializer list requires ‘#include
<initializer_list>’
    3 | import<initializer_list>;
  +++ |+#include <initializer_list>
    4 | // import<iterator>;
......
   11 |   for (const int i : {0, 1, -1}) {
      |                               ^
```

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

end of thread, other threads:[~2023-03-27 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03 14:24 [Bug c++/102576] New: [modules] Importing <initializer_list> doesn't permit implicit uses johelegp at gmail dot com
2021-10-03 14:37 ` [Bug c++/102576] " johelegp at gmail dot com
2022-09-29 20:27 ` cvs-commit at gcc dot gnu.org
2022-09-29 20:28 ` ppalka at gcc dot gnu.org
2023-03-27 12:55 ` 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).