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

            Bug ID: 118981
           Summary: tzdb.cc contains 3 times in sequence:
                    [[gnu::init_priority(99)]]
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Erich.Loew at outlook dot com
  Target Milestone: ---

LATEST GCC 15.0.1 quits at compiling the second occurrence
of "[[gnu::init_priority(99)]" with message:
{standard input}:131506: Error: symbol `_GLOBAL__sub_I.00099_tzdb.cc' is
already defined

-----------------------------------------------------------------------

Observation

The 3 GNU attribute [[gnu::init_priority(99)]] wordings have been added

as per
Parent: 0ca8d56f2085715f27ee536c6c344bc47af49cdd (libstdc++: Fix
std::chrono::tzdb to work with vanguard format)

by
Jonathan Wakely <jwak...@redhat.com>  2025-02-12 18:29:59

Commenting out these 3 GCC attributations leads to compiling without any
error.

-----------------------------------------------------------------------

I check further if multiple identic priorities in sequence are allowed in
C++20.
--> If YES --> code is fine and problem root is something else.....

-----------------------------------------------------------------------

Reply via email to