[Bug c/101838] New: sizeof of struct with array of unspecified bound folded to constant

2021-08-09 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101838 Bug ID: 101838 Summary: sizeof of struct with array of unspecified bound folded to constant Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c/29970] mixing ({...}) with VLA leads to massive breakage

2021-08-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29970 --- Comment #10 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:0631faf87a197145acd833249bf8f20a1c4aaabf commit r12-2830-g0631faf87a197145acd833249bf8f20a1c4aaabf Author: Martin Uecker Date: T

[Bug c++/95517] [coroutines] suggested warning when co_return and return_void() are missing

2021-08-09 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95517 --- Comment #5 from Iain Sandoe --- (In reply to mengjun wei from comment #4) > GCC 11.2 no longer allow return_value and return_void be both defined, may > this restriction be removed? The restriction is part of the C++ standard (for the recor

[Bug c++/91873] -Wreturn-type diagnostic location changes depending on optimization level and destructor declaration

2021-08-09 Thread dov.murik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91873 --- Comment #3 from Dov Murik --- Looks related to bug #99938.

[Bug c++/101811] Error not helpful for misplaced 'template'

2021-08-09 Thread tobi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101811 --- Comment #2 from Tobias Schlüter --- Hi Jonathan, actually I found clang's error message a lot more helpful, I just didn't bother to write it explicitly, especially given that my compiler explorer link shows it for everybody else to make the

[Bug tree-optimization/89163] Missed optimization: sar and shr equivalent for non-negative numbers

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89163 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2019-02-0

[Bug tree-optimization/88854] redundant store after load that would makes aliasing UB

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88854 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2019-01-15 00:00:00 |2021-8-9 Severity|normal

[Bug tree-optimization/88844] poor range info for number of loop iterations with a known upper bound

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88844 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2019-01-1

[Bug tree-optimization/88314] range calculation of shift

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88314 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Depends on|

[Bug target/101804] float_vector_all_ones_operand should be used more

2021-08-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101804 --- Comment #2 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:3d7ccbc1efbd475031a9a4a6110c531f71fbf631 commit r12-2829-g3d7ccbc1efbd475031a9a4a6110c531f71fbf631 Author: H.J. Lu Date: Fri Aug 6 12:

[Bug tree-optimization/88314] range calculation of shift

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88314 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Known to work|

[Bug tree-optimization/87849] Missed optimization: useless for-loop must be eliminated

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87849 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2018-11-02 00:00:00 |2021-8-9 Severity|normal

[Bug tree-optimization/83353] Missed optimization in math expression: sin(asin(a)) == a

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83353 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2017-12-1

[Bug tree-optimization/83350] Missed optimization in math expression: missing cube of the sum formula

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83350 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2017-12-11 00:00:00 |2021-8-9 Severity|normal

[Bug tree-optimization/77899] incorrect VR_RANGE for a signed char function argument

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77899 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/79249] Lambda call does not create exception handler.

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Depends on|

[Bug c++/78754] incorrectly accepts non-deductible template parameter pack in function template

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78754 --- Comment #1 from Andrew Pinski --- clang, ICC and GCC all accept it. ICC warns though: (4): warning #2922: template parameter "Ts" cannot be used because it follows a parameter pack and cannot be deduced from the parameters of function templa

[Bug c++/69054] g++ fails to diagnose ambiguous overload resolution when implicit conversions are involved

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69054 --- Comment #2 from Andrew Pinski --- If we change operator double to operator int, GCC is able to diagnostic the issue. So is this code valid or invalid?

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2021-08-09 Thread noah at vectorized dot io via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 --- Comment #5 from Noah Watkins --- Got it. Thanks for clarifying, I must have misinterpreted your earlier comment. On Mon, Aug 9, 2021 at 8:06 PM davidledger at live dot com.au wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 >

[Bug c++/77935] uninstantiated template constructor

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77935 Andrew Pinski changed: What|Removed |Added Depends on||82336 Resolution|---

[Bug c++/71113] Adding "const" to value in constexpr constructor places const object in .bss instead of .rodata

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71113 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/71449] builtins accepted in default template arguments but rejected when explicitly specified

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71449 --- Comment #3 from Andrew Pinski --- Note this is now accepted for C++11-C++20 and has since 4.6.

[Bug c++/94264] Array-to-pointer conversion not performed on array prvalues

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94264 Andrew Pinski changed: What|Removed |Added CC||dchneric at gmail dot com --- Comment #2

[Bug c++/89931] Incorrect compiler error with temporary object used as function arguments

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89931 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/95517] [coroutines] suggested warning when co_return and return_void() are missing

2021-08-09 Thread wei_mj at 139 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95517 mengjun wei changed: What|Removed |Added CC||wei_mj at 139 dot com --- Comment #4 from

[Bug c++/100764] Internal compiler error when unable to deduce template parameter value

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100764 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/87570] Rejects valid alias template usage (as a type pack size requirement)

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87570 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-10 Status|UNCONFIRME

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2021-08-09 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 --- Comment #4 from David Ledger --- Yeah, I'm just saying I suspect the problem was still there with the empty capture list, its just not observable.

[Bug c++/56190] GCC fails deducing a "void(*)(int, float, double)" to a "void(*)(T..., float, double)" with T={int}

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56190 Andrew Pinski changed: What|Removed |Added CC||mohsen.tamiz at gmail dot com --- Commen

[Bug c++/69205] Place a variadic template in front of function parameter when it is known

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69205 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug c++/59716] variadic template multiple parameter pack expansion fails

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59716 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.4

[Bug c++/60799] access checking within injected friend functions does not happen in the context of the enclosing class

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60799 --- Comment #6 from Andrew Pinski --- GCC, ICC and MSVC all rejects this with is private error.

[Bug c++/69500] friend of enclosed class not allowed access to private move method

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69500 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/68888] No Warning when converting an array of a subclass to its parent

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug c++/59716] variadic template multiple parameter pack expansion fails

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59716 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug analyzer/101837] New: ICE with -O3 -fsanitize=undefined -fanalyzer

2021-08-09 Thread eggert at cs dot ucla.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101837 Bug ID: 101837 Summary: ICE with -O3 -fsanitize=undefined -fanalyzer Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: a

[Bug c++/66590] switch statement: incorrect warning "reaches end of non-void function"

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66590 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug tree-optimization/101830] [12 Regression] Incorrect error messages beginning with r12-2591 (backward jump threader)

2021-08-09 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101830 --- Comment #4 from Segher Boessenkool --- (In reply to Bill Schmidt from comment #0) > (1) linebuf and pos are global variables, and the compiler cannot tell > whether or not there are problems with array bounds accesses here. Indeed, > pos is

[Bug c/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-08-09 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #3 from Kees Cook --- Eww. That means _FORTIFY_SOURCE doesn't work correctly. Can there please be a -fstrict-flex-arrays or something to turn off all the heuristics so a code base can declare it only uses flex arrays for dynamic tra

[Bug c++/66590] switch statement: incorrect warning "reaches end of non-void function"

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66590 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Oh yes this issue: > case 1: { A tmp; return 1; } break; Which was PR 20681 but that didn't handle this case.

[Bug c++/66590] switch statement: incorrect warning "reaches end of non-void function"

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66590 --- Comment #5 from Andrew Pinski --- Oh yes this issue: case 1: { A tmp; return 1; } break;

[Bug c++/66590] switch statement: incorrect warning "reaches end of non-void function"

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66590 --- Comment #4 from Andrew Pinski --- This is what we have now: ;; Function f (_Z1fi, funcdef_no=0, decl_uid=2362, cgraph_uid=1, symbol_order=0) Removing basic block 6 Removing basic block 8 Merging blocks 3 and 4 Removing basic block 11 Mergin

[Bug c++/25689] missed diagnostic about assignment used as truth value.

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25689 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2014-10-12 00:00:00 |2021-8-9 Severity|minor

[Bug c++/67491] [meta-bug] concepts issues

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 71222, which changed state. Bug 71222 Summary: [concepts] ill-formed code taking the address of a function concept not rejected https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71222 What|Removed

[Bug c++/71222] [concepts] ill-formed code taking the address of a function concept not rejected

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71222 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/67491] [meta-bug] concepts issues

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 79711, which changed state. Bug 79711 Summary: [concepts] ICE in instantiate_decl, at cp/pt.c:22474 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79711 What|Removed |Added ---

[Bug c++/71222] [concepts] ill-formed code taking the address of a function concept not rejected

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71222 Andrew Pinski changed: What|Removed |Added CC||hstong at ca dot ibm.com --- Comment #2

[Bug c++/79711] [concepts] ICE in instantiate_decl, at cp/pt.c:22474

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79711 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/86385] calling wrong constructors?

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 Andrew Pinski changed: What|Removed |Added CC||st at quanttec dot com --- Comment #4 fr

[Bug c++/92467] gcc miscompiles ternary expression with omitted first operand ?: involving C++ prvalues

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92467 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/57846] CRTP, templates, metaprogramming, forwarding and static member

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57846 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/63515] Deduced number of parameters can be deduced from unrelated type

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
struct CurriedImpl<-2, std::function, int, int>' :16:8: required from 'struct CurriedImpl<-1, std::function, int, int>' /opt/compiler-explorer/gcc-trunk-20210809/include/c++/12.0.0/type_traits:2924:69: required by substitution of 'template static std::true_type

[Bug c++/62202] g++ does not accept typedef-name after struct even if -fpermissive is used

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62202 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Resolution|---

[Bug c++/52959] Missing typo suggestions

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52959 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2014-08-2

[Bug c++/53822] spell out typedefs in ambiguous call

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53822 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/53822] spell out typedefs in ambiguous call

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53822 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2013-04-16 00:00:00 |2021-8-9 --- Comment #8 from Andrew Pins

[Bug c/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #2 from Andrew Pinski --- See PR 44386.

[Bug c/101836] __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 --- Comment #1 from Andrew Pinski --- GCC treats all trailing arrays no matter what their size as flexible sized arrays. This is by design because of many code out there assumes that.

[Bug c++/64758] [C++11] Give better error message when name of enum's base type cannot be resolved

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64758 --- Comment #2 from Andrew Pinski --- It got worse (maybe better) in GCC 9.4.0 and 10+: :3:14: error: found ':' in nested-name-specifier, expected '::' 3 | enum Waldo : uint32_t { // oops, forgot to include | ^ |

[Bug c/101836] New: __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails

2021-08-09 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 Bug ID: 101836 Summary: __builtin_object_size(P->M, 1) where M is an array and the last member of a struct fails Product: gcc Version: unknown Status: UNCONFIRMED

[Bug fortran/101835] New: Fortran 128-bit float support

2021-08-09 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101835 Bug ID: 101835 Summary: Fortran 128-bit float support Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran

[Bug c++/44521] unhelpful candidates for ambiguous lookup

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44521 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Last reconfirmed|2014-08-2

[Bug c++/52099] Incorrectly applying conversion when catching pointer-to-members

2021-08-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52099 --- Comment #4 from Jonathan Wakely --- Further discussion from PR 67772: Consider: namespace std { struct type_info {}; } struct A {}; auto x = typeid(void(A::*)() const); Clang emits the type info as: _ZTIM1AKFvvE: .quad _ZT

[Bug c++/66108] incorrect cv-qualification deduction on conversion operator template

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66108 --- Comment #2 from Andrew Pinski --- GCC, clang, ICC and MSVC all produce cause the static_assert to happen.

[Bug c++/23257] Incorrect exception-handling behavior with references

2021-08-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23257 --- Comment #8 from Jonathan Wakely --- LLVM's libc++abi.so gives the same result, because it's a property of the Itanium ABI not GCC's implementation of it.

[Bug c++/63217] template conversion operator returning const reference not used for conversion in some cases

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63217 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/85576] A template union containing a friend function causes non-template type used as a template error

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85576 --- Comment #2 from Andrew Pinski --- Looks fixed in GCC 11+.

[Bug c++/93809] bogus error class tag used in naming union on typedef typename ::U U2

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93809 Andrew Pinski changed: What|Removed |Added CC||haoxintu at gmail dot com --- Comment #3

[Bug c++/96145] Weird output in compiling a typedef union as a function return type

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96145 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/93809] bogus error class tag used in naming union on typedef typename ::U U2

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93809 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/83469] union is not accepted as a valid class-key in template name resolution

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83469 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-09 Keywords|

[Bug c++/80943] [DR2327] Conversion function selected in list-initialization in C++1z mode

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80943 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-09 Summary|Conversion

[Bug c++/83447] parameter after function parameter pack gets improperly deduced

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83447 --- Comment #1 from Andrew Pinski --- GCC, ICC and clang all accept this code.

[Bug c++/80943] Conversion function selected in list-initialization in C++1z mode

2021-08-09 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80943 --- Comment #3 from Barry Revzin --- This is CWG 2327 (http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2327). It's still active, but gcc/clang's behavior (printing 2) seems like the superior choice.

[Bug c++/83000] Constraints for union-templates do not work

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83000 Andrew Pinski changed: What|Removed |Added Known to work||10.1.0 Keywords|

[Bug c++/80943] Conversion function selected in list-initialization in C++1z mode

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80943 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/80804] Default constructor improperly invoked in C++1z mode

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80804 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Known to fail|

[Bug c++/78924] hiding of template parameter of member template

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78924 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-09 Keywords|

[Bug c++/66439] Diagnostic on failed function template lookup is missing a line

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66439 Andrew Pinski changed: What|Removed |Added CC||tromey at gcc dot gnu.org --- Comment #5

[Bug c++/60916] truncated error message

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60916 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/60916] truncated error message

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60916 --- Comment #2 from Andrew Pinski --- Seems fixed in GCC 11+: The extra output is now: :20:27: error: type/value mismatch at argument 2 in template parameter list for 'template int wrapper()' 20 | return wrapper (); | ~~~

[Bug c++/67631] brace initialization bug

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67631 Andrew Pinski changed: What|Removed |Added CC||tomaszkam at gmail dot com --- Comment #

[Bug c++/63999] Explicit conversion operators are not considered for explicit cast using braces

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63999 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/77565] `typdef int Int;` --> did you mean `typeof`?

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77565 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2016-09-12 00:00:00 |2021-8-9 --- Comment #2 from Andrew Pins

[Bug c++/77565] `typdef int Int;` --> did you mean `typeof`?

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77565 --- Comment #1 from Andrew Pinski --- We don't give any suggestion any more: :1:1: error: 'typdef' does not name a type typdef int Int; ^~

[Bug c++/77465] [DR909] rejected C-style cast involving casting away constness from result of conversion operator

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77465 --- Comment #2 from Andrew Pinski --- I love how all 4 different compilers (GCC, clang, ICC and MSVC) have this same bug.

[Bug c++/99910] [11/12 Regression] g++.dg/modules/xtreme-header-2_b.C ICE

2021-08-09 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99910 Hans-Peter Nilsson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/77335] templates and ambiguous call to overloaded function

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77335 --- Comment #1 from Andrew Pinski --- This seems fixed on the trunk.

[Bug c++/71377] SFINAE expression compiles, but it should not because of 14.5.5p8

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71377 --- Comment #3 from Andrew Pinski --- Hmm, GCC 10.1.0, 10.2.0, and 10.3.0 all reject it but GCC 9.4.0 and 11.1.0 accepts it :).

[Bug c++/69712] Storing and reusing a method pointer as compile time value

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69712 Andrew Pinski changed: What|Removed |Added Blocks||101603 --- Comment #3 from Andrew Pinski

[Bug tree-optimization/101755] [12 regression] gcc.target/arm/reg_equal_test.c fails on arm since r12-2637

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101755 --- Comment #2 from Andrew Pinski --- d = a | -2; b = (d == 0) ? c : (c % d); d can never be 0, VRP figures this out now. so we end up with: d = a | -2; b = 0xc7d24b5e % d; if (b != 0xc7d24b5e) abort(); and b cannot be 0xc7d24b5e because

[Bug c++/65350] [C++14] operator new[] should not be called if # of initializer elements exceeds # of elements

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65350 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code --- Comment #3 from Andrew Pi

[Bug tree-optimization/101755] [12 regression] gcc.target/arm/reg_equal_test.c fails on arm since r12-2637

2021-08-09 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101755 --- Comment #1 from Andrew Macleod --- What is that suppose to test? The range ecosystem has gotten smarter and we basically fold that function away to return 0 now. between EVRP, VRP and threading, you'd have to turn off a lot of optimization

[Bug c++/101603] [meta-bug] pointer to member functions issues

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101603 Bug 101603 depends on bug 67772, which changed state. Bug 67772 Summary: wrong type_info emitted for cv-qualified pointer to member types https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67772 What|Removed |Added

[Bug c++/52099] Incorrectly applying conversion when catching pointer-to-members

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52099 Andrew Pinski changed: What|Removed |Added CC||richard-gccbugzilla@metafoo

[Bug c++/67772] wrong type_info emitted for cv-qualified pointer to member types

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67772 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/67772] wrong type_info emitted for cv-qualified pointer to member types

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67772 Andrew Pinski changed: What|Removed |Added Blocks||101603 Status|UNCONFIRMED

[Bug c++/67574] Misleading error message for method explicitly defaulted two times

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67574 --- Comment #1 from Andrew Pinski --- The location was fixed in GCC 10+: :7:1: error: definition of explicitly-defaulted 'X::X()' 7 | X::X() = default; | ^ :6:1: note: 'X::X()' explicitly defaulted here 6 | X::X() = default; |

[Bug c++/67402] outside definition of member class of an explicitly specialized member class

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67402 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug target/101697] [11/12 regression] ICE compiling uClibc-ng for h8300-linux

2021-08-09 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101697 --- Comment #3 from Mikael Pettersson --- As far as I can tell the problem is introduced by reload. With a gcc-11.2.0 cross, getaddrinfo.i.290r.ira has (insn 161 159 163 31 (set (reg/f:SI 185) (reg/f:SI 7 sp)) "libc/inet/getaddrinfo.c"

  1   2   >