Branch: refs/heads/smoke-me/tonyc/cpp-header-porting
  Home:   https://github.com/Perl/perl5
  Commit: de470c74038d699dc809b0645ac391b897c0db76
      
https://github.com/Perl/perl5/commit/de470c74038d699dc809b0645ac391b897c0db76
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-05-07 (Tue, 07 May 2024)

  Changed paths:
    M t/porting/cpphdrcheck.t

  Log Message:
  -----------
  improve error reporting


  Commit: 82777c7e89a97ea134c4514897cb34765bdff38b
      
https://github.com/Perl/perl5/commit/82777c7e89a97ea134c4514897cb34765bdff38b
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hints/cygwin.sh

  Log Message:
  -----------
  hints/cygwin.sh: don't touch system symbol __STRICT_ANSI__

Adding _GNU_SOURCE, which was done much later, should give us the
GNU-ish symbols (though POSIX_C_SOURCE would be more general.)

I couldn't find the reason for this being added, but the C++
headers react badly to it:

In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:38,
                 from source.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/c++config.h:573:2:
 warning: #warning "__STRICT_ANSI__ seems to have been undefined; this is not 
supported" [-Wcpp]
  573 | #warning "__STRICT_ANSI__ seems to have been undefined; this is not 
supported"
      |  ^~~~~~~
In file included from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/max_size_type.h:37,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/ranges_base.h:38,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/string_view:48,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/basic_string.h:48,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/string:55,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/locale_classes.h:40,
                 from 
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/ios_base.h:41,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ios:42,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ostream:38,
                 from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:39,
                 from source.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/numbers:139:9: error: unable to 
find numeric literal operator 'operator""Q'
  139 |       = 2.718281828459045235360287471352662498Q;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...


Compare: https://github.com/Perl/perl5/compare/31f622baab79...82777c7e89a9

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to