Re: [PATCH] c++: Fix ICE when template lambdas call with default parameters in unevaluated context

2025-03-25 Thread yxj-github-437
>> This patch would like to avoid the ICE when template lambdas call with >> default parameters in unevaluated context. The bug is the same as >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119385. For example as blow: >> >> 1 | template >> 2 | void foo(T x) { >> 3 | sizeo

Re: [PATCH] c++: Fix ICE when template lambdas call with default parameters in unevaluated context

2025-03-25 Thread yxj-github-437
>> This patch would like to avoid the ICE when template lambdas call with >> default parameters in unevaluated context. For example as blow: >> >> 1 │ template >> 2 │ void foo(T x) { >> 3 │ sizeof [](T=x) { return 0; }(); >> 4 │ } >> 5 │ >> 6 │ void test

[PATCH] c++: Fix ICE when template lambdas call with default parameters in unevaluated context

2025-03-22 Thread yxj-github-437
This patch would like to avoid the ICE when template lambdas call with default parameters in unevaluated context. For example as blow: 1 │ template 2 │ void foo(T x) { 3 │ sizeof [](T=x) { return 0; }(); 4 │ } 5 │ 6 │ void test { 7 │ foo(0); 8 │

Re: Re: [PATCH] c++/modules: Fix linkage checks for exported using-decls

2025-01-23 Thread yxj-github-437
>On 1/15/25 7:36 PM, yxj-github-437 wrote: >>> On Fri, Jan 03, 2025 at 05:18:55PM +, xxx wrote: >>>> From: yxj-github-437 <2457369...@qq.com> >>>> >>>> This patch attempts to fix an error when build module std. The reason for >>>

[PATCH] libstdc++: fix possible undefined std::timespec in module std

2025-01-16 Thread yxj-github-437
I notice std::timespec and std::timespec_get are used in preprocessor condition _GLIBCXX_HAVE_TIMESPEC_GET. So in module std, it should be the same. libstdc++-v3: * src/c++23/std-clib.cc.in: move std::timespec in preprocessor condition _GLIBCXX_HAVE_TIMESPEC_GET --- libstdc++-v3/s

Re: Re: [PATCH] c++/modules: Fix linkage checks for exported using-decls

2025-01-15 Thread yxj-github-437
> On Fri, Jan 03, 2025 at 05:18:55PM +, xxx wrote: >> From: yxj-github-437 <2457369...@qq.com> >> >> This patch attempts to fix an error when build module std. The reason for the >> error is __builrin_va_list (aka struct __va_list) is an internal linkage. so

Re: Re: [PATCH] c++/modules: Fix linkage checks for exported using-decls

2025-01-15 Thread yxj-github-437
>On Fri, Jan 03, 2025 at 05:18:55PM +, xxx wrote: >> From: yxj-github-437 <2457369...@qq.com> >> >> This patch attempts to fix an error when build module std. The reason for the >> error is __builrin_va_list (aka struct __va_list) is an internal linkage. so

[PATCH] Android: Fix build for Android

2024-10-14 Thread yxj-github-437
gcc/ * config.gcc: fix target aarch64-linux-android, arm-linux-androideabi, i686-linux-android, x86_64-linux-android * config/linux-android.h: fix SPEC based on aarch64-linux-android-clang * config/aarch64/aarch64-elf.h: Add Macro DEFAULT_ASM_SPEC * config/aa

Android: Fix build for Android

2024-10-11 Thread yxj-github-437
This is a patch to fix target android 0001-Android-Fix-build-for-Android.patch Description: Binary data