public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105515] New: const vector inside a module namespace. Error.
@ 2022-05-07 11:27 deco33000 at yandex dot com
  2024-02-11 13:42 ` [Bug c++/105515] [modules] const std::vector " nshead at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: deco33000 at yandex dot com @ 2022-05-07 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105515
           Summary: const vector inside a module namespace. Error.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: deco33000 at yandex dot com
  Target Milestone: ---

Hi,

when using this extremely reduced code:
----------
module;

#include <vector>

export module common_vals;

using std::vector;

export {
        namespace My_vals {

                const vector <unsigned> val{4209};
        }

}
----------

The error:
error: ‘val’ is not a member of ‘My_vals’.
Remove const and it works.

With the traditional headers, const causes no issue.
GCC 12.1.0 - Linux

Thanks

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

* [Bug c++/105515] [modules] const std::vector inside a module namespace. Error.
  2022-05-07 11:27 [Bug c++/105515] New: const vector inside a module namespace. Error deco33000 at yandex dot com
@ 2024-02-11 13:42 ` nshead at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: nshead at gcc dot gnu.org @ 2024-02-11 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

Nathaniel Shead <nshead at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |nshead at gcc dot gnu.org
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=99232
           Assignee|unassigned at gcc dot gnu.org      |nshead at gcc dot gnu.org
         Resolution|---                         |FIXED
   Target Milestone|---                         |14.0

--- Comment #1 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed with r14-5826-g726723c4768002.

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

end of thread, other threads:[~2024-02-11 13:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07 11:27 [Bug c++/105515] New: const vector inside a module namespace. Error deco33000 at yandex dot com
2024-02-11 13:42 ` [Bug c++/105515] [modules] const std::vector " nshead 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).