[Bug c/117025] [C2y] Implement N3369, New _Lengthof()

2025-05-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117025 Joseph S. Myers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/120381] [14/15/16 Regression] internal compiler error: in composite_type_internal, at c/c-typeck.cc:848

2025-05-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120381 --- Comment #2 from Joseph S. Myers --- Nesting one definition of struct A inside another is never valid (and the godbolt link shows the expected "nested redefinition" error that the PR doesn't quote).

[Bug target/120326] problems with attribute __ms_struct__

2025-05-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120326 Joseph S. Myers changed: What|Removed |Added Last reconfirmed||2025-05-19 Ever confirmed|0

[Bug target/120304] SPARC lacks __float128 support

2025-05-16 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120304 --- Comment #5 from Joseph S. Myers --- I agree that it's best not to support legacy __float128 for new architectures; if there are any remaining issues with libgcobol using long double / _Float128, those should be fixed instead. float128-mul-u

[Bug c/112761] Using incomplete array types in function prototypes doesn't work

2025-05-07 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112761 --- Comment #5 from Joseph S. Myers --- The basic principle here was established in C90 DR#047: "there is nothing to suggest that a not-strictly-conforming array type can magically be transformed into a strictly conforming pointer parameter via

[Bug rtl-optimization/120059] [16 regression] ICE when building mesa in vartrack since r16-286

2025-05-02 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120059 Joseph S. Myers changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment

[Bug other/119855] Fixincludes needed for assert.h to support C++26's P2264R7

2025-04-29 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119855 --- Comment #9 from Joseph S. Myers --- I don't think a glibc bug "assert should not allow C++ scoped enums" has anything to do with the issue of making assert a variadic macro to allow an argument with a comma in it. As far as I know that C23 c

[Bug c/67224] UTF-8 support for identifier names in GCC

2025-04-29 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224 --- Comment #39 from Joseph S. Myers --- Spelling is a sequence of characters - and a spelling where those characters include \ and u is different from a spelling where a multibyte source character appears directly, and also different from a spel

[Bug translation/119684] [15 Regression] Severe bug in german translation

2025-04-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119684 --- Comment #21 from Joseph S. Myers --- If we want such checking, it should be done in CI (similar to the CI that verifies generated files that are checked in have been correctly regenerated), not at .pot regeneration time or .po commit time.

[Bug c/119624] GCC rejects valid C11 code involving _Generic

2025-04-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119624 --- Comment #6 from Joseph S. Myers --- Please see the recent "discarded" papers, which attempt to establish a notion of "discarded relative" which is what's actually wanted (for e.g. establishing whether something is a constant expression).

[Bug c/119624] GCC rejects valid C11 code involving _Generic

2025-04-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119624 --- Comment #3 from Joseph S. Myers --- This raises a question of whether the interpretation of the type of the controlling expression "as if it had undergone an lvalue conversion" (per the resolution of issue 0481) also engages the (translation

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #14 from Joseph S. Myers --- I think an object declared with a structure type with only const fields and no padding can be considered const (no valid way to modify it), yes.

[Bug ipa/119312] Constant array not allocated in read-only segment

2025-03-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119312 --- Comment #11 from Joseph S. Myers --- A struct with a const field is not a modifiable lvalue in C, so it's not valid to assign to it. Modifying a const field with memcpy / byte accesses would probably also violate "If an attempt is made to mo

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #18 from Joseph S. Myers --- bool is a keyword whose spelling inside # and ## is unspecified, and _Bool is an alternative spelling for that keyword. It's permitted for implementations to use a predefined macro, but that's not what GC

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #6 from Joseph S. Myers --- If P3140 gets into standard C++ that will provide a more substantial reason for extending ABIs / back-end / library support to handle 128-bit integers across all targets.

[Bug cobol/119244] cobol/libgcobol should allow libquadmath to provide 128b floating support.

2025-03-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119244 --- Comment #2 from Joseph S. Myers --- If ABI support for _Float128 is added on an architecture that doesn't currently have it, we can also add such support on that architecture in glibc - but that will increase the minimum GCC version for buil

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-11 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #11 from Joseph S. Myers --- The ISO Code of Ethics and Conduct includes "We abide by the policies of ISO and embrace the concepts of compromise and consensus building, and notably in the development of ISO standards and other delive

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #7 from Joseph S. Myers --- In particular, the subtle issues around semantics for bit-field expression operands (see N2958) are definitely something that should be discussed in a single place (i.e. the standard committee) rather than

[Bug c/119170] Add operators _Widthof, _Minof, _Maxof

2025-03-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119170 --- Comment #6 from Joseph S. Myers --- I don't think we should add this prematurely. We can wait for the specification to mature in WG14, and I think it's a bad idea to split the discussion between multiple places.

[Bug c/97986] [12/13/14/15 Regression] ICE in force_constant_size when applying va_arg to VLA type since r6-91-gf8e89441bc5518f4

2025-03-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97986 --- Comment #10 from Joseph S. Myers --- I think my previous comment still applies: when an array type is passed to va_arg, evaluate side effects of the arguments, warn and (except for non-VLAs in C90 mode) generate a call to __builtin_trap that'

[Bug translation/118991] Wrong extracted text in avr.cc

2025-02-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118991 --- Comment #3 from Joseph S. Myers --- This sort of concatenation is not expected to work with gettext; except I think for limited cases for standard PRI* etc. macros, translations are always for literal strings, not ones concatenated with host

[Bug target/67771] integer-to-floating-point conversions wrongly produce -0 in FE_DOWNWARD mode

2025-02-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67771 --- Comment #5 from Joseph S. Myers --- Various glibc functions work around this using FIX_INT_FP_CONVERT_ZERO, I suppose the new log10f implementation taken from CORE-MATH needs such a workaround as well.

[Bug c/118765] c23 tag matching broken for multiple redeclarations of unions and typedefs

2025-02-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118765 --- Comment #5 from Joseph S. Myers --- What do you mean by "doesn't work"? Please state both what you expect (based on C23 with bug fixes that postdate the integration of the original proposal) and what you see. As per CD1 comments GB-032 and F

[Bug target/111709] [13/14/15 Regression] Miscompilation of sysdeps/ieee754/dbl-64/s_fma.c since r13-1268-g8c99e307b20c50

2025-02-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111709 --- Comment #27 from Joseph S. Myers --- That's not redundant, the previous calculation is in FE_TOWARDZERO mode, before the call to libc_feupdateenv_test. But maybe that call needs to be followed by "a1 = math_opt_barrier (a1);" or similar to e

[Bug target/111709] [13/14/15 Regression] Miscompilation of sysdeps/ieee754/dbl-64/s_fma.c since r13-1268-g8c99e307b20c50

2025-02-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111709 --- Comment #24 from Joseph S. Myers --- See my previous comment about possible code movement / need for more usage of math_opt_barrier. Maybe the a1 + u.d computation got moved before the rounding mode was restored, or something like that?

[Bug target/111709] [13/14/15 Regression] Miscompilation of sysdeps/ieee754/dbl-64/s_fma.c since r13-1268-g8c99e307b20c50

2025-02-05 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111709 --- Comment #23 from Joseph S. Myers --- hppa is an after-rounding architecture and this test is only meant to produce underflow on before-rounding architectures. You should investigate why the code in question is entered at all. I'd have expect

[Bug c/118592] Add builtins/const folding for the new C23 math functions

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118592 --- Comment #2 from Joseph S. Myers --- Actually, the _FloatN / _FloatNx functions are only reserved if the user defines __STDC_WANT_IEC_60559_TYPES_EXT__ so maybe DEF_EXT_LIB_FLOATN_NX_BUILTINS is right for them. Excluding built-in functions w

[Bug c/118592] Add builtins/const folding for the new C23 math functions

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118592 --- Comment #1 from Joseph S. Myers --- That's just a small subset of the ones coming to C23 via TS 18661-4. There are also all the functions (added to glibc some years ago) that came via TS 18661-1 (we have roundeven, but not most of the rest).

gcc-bugs@gcc.gnu.org

2025-01-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114877 --- Comment #6 from Joseph S. Myers --- I believe the test is valid: an unspecified (non-wobbly) value is stored, so, for each call to frexp executed in the abstract machine, there must be a value of type int (that compares equal to itself, for

[Bug target/118280] [14/15 Regression] __atomic_test_and_set in Microblaze are broken (exposed by r14-4286)

2025-01-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280 --- Comment #6 from Joseph S. Myers --- Are you *actually using the code built by recent GCC versions on Microblaze hardware running the Linux kernel* (as opposed to simply building software for lots of different targets that GCC claims to suppo

[Bug target/111814] [SH] __builtin_nan* returns signalling NaNs instead of quiet NaNs and vice versa

2025-01-02 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111814 --- Comment #8 from Joseph S. Myers --- See https://sourceware.org/legacy-ml/libc-alpha/2018-02/msg00440.html and https://sourceware.org/bugzilla/show_bug.cgi?id=30973 regarding glibc fixes that should preferably be done in sync with a GCC fix f

[Bug c/118112] Unhelpful "too many arguments to function" error message (especially w/ C23)

2024-12-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118112 --- Comment #9 from Joseph S. Myers --- We do in fact track when () was interpreted as (void) for use by -Wtraditional, but only in the c_arg_info, it doesn't get as far as the actual declarations and types. If using this information in a way th

[Bug c/118106] Erroneous warning: variably modified '' at file scope

2024-12-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118106 Joseph S. Myers changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRME

[Bug target/103370] [12/13/14/15 Regression] Assembler error building glibc for ColdFire soft-float

2024-12-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103370 Joseph S. Myers changed: What|Removed |Added CC||aurelien at aurel32 dot net,

[Bug c++/118016] GCC adds excess precision to floating point literals, and therefore rounds incorrectly (x87 FPU, -fexcess-precision=standard)

2024-12-12 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118016 --- Comment #3 from Joseph S. Myers --- For C, see https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1361.htm and the minutes https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1380.pdf where it was accepted (thus reverting an abortive attempt to

[Bug c/117981] -Wc11-c23-compat does not warn for bool, false and true

2024-12-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117981 --- Comment #2 from Joseph S. Myers --- The use of standard versions in the option names is deliberate. An option to warn about any version incompatibilities would become like -Wtraditional, less and less useful over time. If your code is known

[Bug c/107980] va_start does not warn about an arbitrary number of arguments in C2x mode

2024-12-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107980 --- Comment #20 from Joseph S. Myers --- I think it's fine for such QoI diagnostics to happen during compilation. Note that there is no requirement for [] or {} to be balanced in the additional arguments, only ().

[Bug c/117162] Universal character names designating members of the basic character set or control characters should be allowed in string literals or character constants (C23)

2024-12-03 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117162 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Status|NEW

[Bug c/107980] va_start does not warn about an arbitrary number of arguments in C2x mode

2024-12-02 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107980 --- Comment #18 from Joseph S. Myers --- The final normative wording in C23 says "If any additional arguments expand to include unbalanced parentheses, or a preprocessing token that does not convert to a token, the behavior is undefined." (and t

[Bug c/100792] ICE: gimplify_expr, at gimplify.c:14879

2024-11-30 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100792 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Resolution|---

[Bug c/100501] [12/13/14 Regression] ICE with inline-asm and void statement expression

2024-11-30 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100501 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Summary|[12/13/14/15

[Bug c/117752] ICE: Segmentation fault

2024-11-28 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117752 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/100501] [12/13/14/15 Regression] ICE with inline-asm and void statement expression

2024-11-28 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100501 Joseph S. Myers changed: What|Removed |Added CC||xieym3 at zohomail dot com --- Commen

[Bug c/100501] [12/13/14/15 Regression] ICE with inline-asm and void statement expression

2024-11-28 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |jsm28 at gcc dot gnu.org --- Comment #12 from Joseph S. Myers --- Testing a fix.

[Bug c/117757] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in c_gimplify_expr, at c-family/c-gimplify.cc:810

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117757 Joseph S. Myers changed: What|Removed |Added Resolution|--- |FIXED Known to work|

[Bug c/91193] ICE on invalid: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in grokdeclarator, at c/c-decl.c:5956

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Status|ASSIGNED

[Bug c/117750] ICE: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in grokdeclarator, at c/c-decl.cc:6981

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117750 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/91193] ICE on invalid: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in grokdeclarator, at c/c-decl.c:5956

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193 Joseph S. Myers changed: What|Removed |Added CC||xieym3 at zohomail dot com --- Comment

[Bug c/91193] ICE on invalid: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in grokdeclarator, at c/c-decl.c:5956

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |jsm28 at gcc dot gnu.org --- Comment #6 from Joseph S. Myers --- Testing a fix.

[Bug c/117781] typeof_unqual should not remove atomic from an array of atomic type

2024-11-27 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117781 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/117755] ICE: Segmentation fault

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117755 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Resolution|---

[Bug middle-end/100624] ICE: Segmentation fault, gimplify_target_expr

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100624 Bug 100624 depends on bug 98195, which changed state. Bug 98195 Summary: ICE after `void value not ignored as it ought to be` error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98195 What|Removed |Added ---

[Bug c/98195] ICE after `void value not ignored as it ought to be` error

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98195 Joseph S. Myers changed: What|Removed |Added Target Milestone|--- |15.0 Known to work|

[Bug c/117755] ICE: Segmentation fault

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117755 Joseph S. Myers changed: What|Removed |Added CC||141242068 at smail dot nju.edu.cn --

[Bug middle-end/111921] [12/13/14/15 Regression] ICE with nested function after an error since r6-205-g5c4abbb8e80153

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111921 Joseph S. Myers changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c/98195] ICE after `void value not ignored as it ought to be` error

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98195 Joseph S. Myers changed: What|Removed |Added CC||141242068 at smail dot nju.edu.cn ---

[Bug c/117755] ICE: Segmentation fault

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
|1 Last reconfirmed||2024-11-25 Assignee|unassigned at gcc dot gnu.org |jsm28 at gcc dot gnu.org --- Comment #1 from Joseph S. Myers --- Testing a patch. (This is *not* the same as bug 98195, though both involve invalid atomic

[Bug c/110737] GCC: internal compiler error: Segmentation fault when processing __builtin_isinf and _Atomic long double together

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110737 Joseph S. Myers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/98195] ICE after `void value not ignored as it ought to be` error

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98195 Joseph S. Myers changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |jsm28 at gcc dot gnu.org

[Bug c/112841] typeof_unqual is not removing qualifiers from the element type of array types

2024-11-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112841 --- Comment #6 from Joseph S. Myers --- Please file a new bug for this.

[Bug c/112841] typeof_unqual is not removing qualifiers from the element type of array types

2024-11-22 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112841 Joseph S. Myers changed: What|Removed |Added Target Milestone|--- |15.0 Known to work|

[Bug c++/117727] __builtin_bit_cast with target type nullptr_t unimplemented

2024-11-22 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117727 --- Comment #8 from Joseph S. Myers --- As nullptr_t is in C23, arguably psABIs ought to define the representation of nullptr_t as part of defining the C ABI.

[Bug c/114816] Non-standard behavior with void arguments

2024-11-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114816 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Known to work|

[Bug c/114266] No -pedantic diagnostic for zero-sized array in compound literals

2024-11-20 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114266 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Target Milestone|---

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/117139] ICE with invalid constexpr expression (tree check: expected integer_cst, have real_cst in get_len, at tree.h:6509)

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117139 Joseph S. Myers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jsm28 at gcc dot gnu.org

[Bug c/114869] [13/14 Regression] GCC says nullptr_t is a C built in but it should be in

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Summary|[13/14/15 Reg

[Bug c/114869] [13/14/15 Regression] GCC says nullptr_t is a C built in but it should be in

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
Assignee|mpolacek at gcc dot gnu.org|jsm28 at gcc dot gnu.org --- Comment #2 from Joseph S. Myers --- Testing a fix. This is an rejects-valid regression in GCC 13 and later, not specific to C23 mode; a valid program "int nullptr_t;" is wrongly rejected.

[Bug c/117059] Enhancement: Make -Wzero-as-null-pointer-constant available in C

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059 --- Comment #11 from Joseph S. Myers --- This does not currently warn about zero of enum, bool or _BitInt type except in contexts where integer promotions result in bool being promoted to int before the diagnostic applies.

[Bug c/112556] Null pointer constants with enumeration type are not accepted

2024-11-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556 --- Comment #7 from Joseph S. Myers --- I don't object to a backport if someone wishes to backport it. (Technically this is a regression between GCC 10 where false in had type int and GCC 11 where it had type _Bool in C2X mode, so resulting in

[Bug c/112556] Null pointer constants with enumeration type are not accepted

2024-11-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112556 Joseph S. Myers changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c/117164] ICE building gcc.dg/nested-func-12.c with -std=gnu23

2024-11-15 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117164 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Target Milestone|---

[Bug c/117164] ICE building gcc.dg/nested-func-12.c with -std=gnu23

2024-11-13 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117164 --- Comment #5 from Joseph S. Myers --- Slightly simplified test (note that only one nested function is needed, and none of the calls to it actually use the return value - but all three calls are needed to get the ICE). The special options from

[Bug c/117059] Enhancement: Make -Wzero-as-null-pointer-constant available in C

2024-11-13 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059 --- Comment #7 from Joseph S. Myers --- How about the gnulib manywarnings module for a few years first, which would cover various gnulib-using projects that like a high level of warnings, and then consider -Wextra?

[Bug c/117020] [C2y] Implement N3366, Restartable Functions for Efficient Character Conversions

2024-11-11 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117020 --- Comment #4 from Joseph S. Myers --- Yes, it's about the exec-charset / wide-exec-charset.

[Bug c/117289] gcc.dg/debug/ctf/ctf-function-pointers-2.c failure with -std=gnu23

2024-11-04 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117289 --- Comment #3 from Joseph S. Myers --- If deduplication is mainly meant to happen at link time, should we then add -std=gnu17 to this test and leave this issue for a potential future optimization of the CTF output in a single object in -std=gnu

[Bug c/117289] gcc.dg/debug/ctf/ctf-function-pointers-2.c failure with -std=gnu23

2024-11-01 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117289 Joseph S. Myers changed: What|Removed |Added CC||david.faust at oracle dot com,

[Bug c/117021] [C2y] Implement N3370, Case range expressions

2024-10-25 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117021 --- Comment #3 from Joseph S. Myers --- That paragraph is there. As a Constraint, it needs a pedwarn or hard error (for both the sign and overflow cases). The claim in the paper that it's already a hard error in GCC is incorrect.

[Bug c/117289] New: gcc.dg/debug/ctf/ctf-function-pointers-2.c failure with -std=gnu23

2024-10-24 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jsm28 at gcc dot gnu.org CC: uecker at gcc dot gnu.org Target Milestone: --- If the test gcc.dg/debug/ctf/ctf-function-pointers-2.c is built with -std=gnu23 (or a

[Bug tree-optimization/117235] [15 Regression] trapping fp statement can be moved across another trapping fp statement since r15-4503-g8d6d6d537fdc75

2024-10-21 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117235 --- Comment #5 from Joseph S. Myers --- I agree that we should consider -ftrapping-math to be misnamed and to be about exception flags, not anything that would involve preserving the order in which exceptions are raised (between function calls o

[Bug c/117197] ICE: 'verify_gimple' failed with vector_size

2024-10-18 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197 --- Comment #4 from Joseph S. Myers --- On the whole I'd expect vector initializers to work like structure ones: that a vector can be initialized either with another vector of the same type, or with brace-enclosed scalars, and that inside a brac

[Bug testsuite/117183] gcc.dg/c23-constexpr-2a.c: comment mismatch with dg-do

2024-10-17 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117183 Joseph S. Myers changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c/117162] Universal character names designating members of the basic character set or control characters should be allowed in string literals or character constants (C23)

2024-10-15 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117162 Joseph S. Myers changed: What|Removed |Added Last reconfirmed||2024-10-16 Status|UNCONFI

[Bug c/117164] New: ICE building gcc.dg/nested-func-12.c with -std=gnu23

2024-10-15 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jsm28 at gcc dot gnu.org CC: uecker at gcc dot gnu.org Target Milestone: --- If I build gcc.dg/nested-func-12.c with -std=gnu23 (in addition to the other options

[Bug c/117028] [C2y] Implement N3353, Obsolete implicitly octal literals and add delimited escape sequences

2024-10-10 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117028 --- Comment #5 from Joseph S. Myers --- Obsolescence is generally unhelpful when there is no non-obsolescent alternative in previous standard versions, given that much code needs to work with a range of implementation and standard versions; octa

[Bug target/117053] New: [15 Regression] ICE in extract_insn building glibc testsuite tst-svc2.c

2024-10-09 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jsm28 at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Target: i?86-*-* Created

[Bug c/117019] [C2y] Implement N3356, if declarations

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117019 --- Comment #1 from Joseph S. Myers --- Note that a switch declaration can have VM type without violating the rule about switch not being allowed to jump over a declaration with VM type (the previous rule was that the entire switch statement had

[Bug c/117030] [C2y] Implement N3367, More Modern Bit Utilities

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117030 --- Comment #1 from Joseph S. Myers --- Note that what was accepted omitted the [[unsequenced]] attributes (with a view to having them added back in a later, separate paper), but that's probably not relevant for the built-in functions.

[Bug c/117028] [C2y] Implement N3353, Obsolete implicitly octal literals and add delimited escape sequences

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117028 --- Comment #1 from Joseph S. Myers --- My strong inclination is *not* to add any obsolescence diagnostics, just support the new features (which should already be present for C++) for C23.

[Bug c/117024] [C2y] Implement N3349, Abs Without Undefined Behavior

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117024 --- Comment #1 from Joseph S. Myers --- For GCC, this means built-in functions (this is also a library feature).

[Bug c/114816] Non-standard behavior with void arguments

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114816 --- Comment #2 from Joseph S. Myers --- N3344 alternative 1 was accepted for C2Y. So we should make all these questionable cases hard errors (no need for conditionals on standard version since they were previously implicitly undefined behavior).

[Bug c/117027] [C2y] Implement N3286, Floating-point exceptions for macro replacements

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117027 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/117026] [C2y] Implement N3275, fopen_s "p" and bring fopen_s’s mode closer to POSIX 202x

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117026 Joseph S. Myers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/117023] [C2y] Implement N3322, Allow zero length operations on null pointers

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117023 --- Comment #1 from Joseph S. Myers --- It's not clear what "implement" means here. See the thread https://inbox.sourceware.org/gcc/375c5f62-dad4-4247-958c-57b230ae6...@oracle.com/T/#t

[Bug c/117020] [C2y] Implement N3366, Restartable Functions for Efficient Character Conversions

2024-10-08 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117020 --- Comment #2 from Joseph S. Myers --- There is very little language content in this paper (only some predefined macros).

[Bug other/116724] RFE: can generated SARIF diagnostics contain untranslated messages (plus translations?)

2024-09-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116724 --- Comment #8 from Joseph S. Myers --- Note that there are various places where translation happens without the diagnostic machinery ever seeing an untranslated message. A representative example is cp/typeck.cc:cp_build_unary_op, where message

[Bug c/46073] __builtin_choose_expr outputs warnings for unused expression

2024-09-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46073 --- Comment #5 from Joseph S. Myers --- It's doubtful that this is a bug. You could define __builtin_choose_expr so the unselected operand only needs to be a balanced token sequence (with no commas unless nested inside () [] {}), but it's less cl

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-06 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 --- Comment #2 from Joseph S. Myers --- The specification for underspecified declarations (auto and constexpr) says "if anywhere within the sequence of tokens making up the declaration identifiers that are not ordinary are declared, the behavior

  1   2   3   4   5   6   7   8   >