[Bug c++/54665] New: [C++11] template alias to template does not work

2012-09-21 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54665 Bug #: 54665 Summary: [C++11] template alias to template does not work Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal

[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument

2012-10-31 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718 Matthew Woehlke changed: What|Removed |Added CC||mw_triad at users dot

[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument

2012-11-01 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718 --- Comment #12 from Matthew Woehlke 2012-11-01 17:47:04 UTC --- Requires qt-devel installed, but has the benefit of being the exact issue I'm having in production (on the chance it's something screwy about Qt...): $ cat zero-as-pointer.cpp #

[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument

2012-11-01 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718 --- Comment #13 from Matthew Woehlke 2012-11-01 17:56:49 UTC --- ...and with your example I do indeed get no warning. Simplified test case: $ cat zero-as-pointer.h #pragma GCC system_header class Foo { public: Foo(void** = 0); }; class Bar

[Bug c++/55173] New: GCC gives wrong location, and ignores -isystem, when warning about default arguments

2012-11-01 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55173 Bug #: 55173 Summary: GCC gives wrong location, and ignores -isystem, when warning about default arguments Classification: Unclassified Product: gcc Version: 4.7.2

[Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument

2012-11-01 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718 --- Comment #19 from Matthew Woehlke 2012-11-01 23:04:42 UTC --- Reported as bug 55173. I'm not going to claim to understand bug 43486 sufficiently to know it is the same issue, but if you are sure, please feel free to close as duplicate.

[Bug c++/59624] New: bizarre warning about 'assigned but unused parameter' in ctor

2013-12-29 Thread mw_triad at users dot sourceforge.net
ity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mw_triad at users dot sourceforge.net Created attachment 31538 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31538&action=edit SSCCE showing the bug Consider the follow

[Bug c++/59653] New: warn when non-const parameter or local variable is not modified

2013-12-31 Thread mw_triad at users dot sourceforge.net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mw_triad at users dot sourceforge.net Some coding styles specify that local variables that are not modified should be marked 'const' in order (in theory) to allow for compiler op

[Bug c++/59653] warn when non-const parameter or local variable is not modified

2013-12-31 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59653 Matthew Woehlke changed: What|Removed |Added Severity|normal |enhancement

[Bug c++/55655] New: cannot export specialized template

2012-12-11 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55655 Bug #: 55655 Summary: cannot export specialized template Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Prio

[Bug c++/55655] cannot export specialized template

2012-12-11 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55655 --- Comment #2 from Matthew Woehlke 2012-12-11 21:06:26 UTC --- Created attachment 28930 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28930 example code Here's a simplified concrete example. Since we are talking about correct vi

[Bug c++/55655] cannot export specialized template

2012-12-11 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55655 --- Comment #4 from Matthew Woehlke 2012-12-11 23:34:21 UTC --- (In reply to comment #3) > Which symbols are hidden which you don't want to be? ptr > What do you mean "instantiation failed"? You get a warning but it works. It fails

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through

2014-04-30 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 --- Comment #22 from Matthew Woehlke --- Thanks for the patch. However, one thing I am not seeing is an easy way to suppress the warning for a specific occurrence (a la [[clang:fallthrough]]). Can that be added also? (Or is it there and I miss some

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through

2014-04-30 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 --- Comment #27 from Matthew Woehlke --- (In reply to Marek Polacek from comment #26) > Perhaps we could invent __builtin_fallthrough or some such. Yes, I was expecting there would be some alternate spelling for cases where C++11 attributes are no

[Bug c/7652] -Wswitch-break : Warn if a switch case falls through

2014-04-30 Thread mw_triad at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652 --- Comment #32 from Matthew Woehlke --- (In reply to Florian Weimer from comment #30) > Does this mean that you propose a GCC extension which allows to write this? > > goto 5; >case 5: While I personally detest this syntax :-), I feel t

[Bug c++/43486] Preserve variable-use locations

2015-03-30 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 --- Comment #8 from Matthew Woehlke --- Can this *please* get fixed? This really hurts the ability to use -Wzero-as-null-ptr in particular. See https://bugreports.qt.io/browse/QTBUG-45291 for an example of the pain this causes.

[Bug c++/60135] New: add option to warn if ctor/conversion declared implicit

2014-02-10 Thread mw_triad at users dot sourceforge.net
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mw_triad at users dot sourceforge.net "explicit" is a great tool for avoiding mistakes in the use of a class. Unfortunately, programmers must remember to use it, and there is not p

[Bug libstdc++/64399] New: g++ does not diagnose when upcasting owning pointer (e.g. unique_ptr) with non-virtual destructor

2014-12-23 Thread mw_triad at users dot sourceforge.net
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: mw_triad at users dot sourceforge.net Consider the following code: #include struct X { ~X(); }; struct Y : X { ~Y(); }; std::unique_ptr f

[Bug libstdc++/64399] g++ does not diagnose when upcasting owning pointer (e.g. unique_ptr) with non-virtual destructor

2014-12-23 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64399 --- Comment #2 from Matthew Woehlke --- (In reply to Jonathan Wakely from comment #1) > PR 58876 *Almost*, except I am proposing that -Wnon-virtual-dtor should trip even if X does not otherwise have virtual methods. (Just why you'd be writing su

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2014-12-23 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 Matthew Woehlke changed: What|Removed |Added CC||mw_triad at users dot sourceforge.

[Bug libstdc++/64399] g++ does not diagnose when upcasting owning pointer (e.g. unique_ptr) with non-virtual destructor

2014-12-24 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64399 --- Comment #7 from Matthew Woehlke --- (In reply to Thiago Macieira from comment #3) > Because it's not a bug. > > This is a totally valid scenario. Valid in what way? I constructed a Y but arranged, probably by accident, that its dtor is neve

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2014-12-24 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 --- Comment #7 from Matthew Woehlke --- (In reply to Jonathan Wakely from comment #6) > (In reply to Matthew Woehlke from comment #5) > > Actually, this may be required for 'make_unique(new B)' to warn, since > > That's not how make_unique works

[Bug libstdc++/58876] No non-virtual-dtor warning in std::unique_ptr

2014-12-26 Thread mw_triad at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876 --- Comment #9 from Matthew Woehlke --- (In reply to Jonathan Wakely from comment #8) > No, really, that's not how make_unique works. You do not use 'new' with > make_unique, that's the whole point [...] D'oh, sorry :-). Not sure what I was thin

[Bug libquadmath/119397] New: missing license file for SunPro covered sources

2025-03-20 Thread mw_triad at users dot sourceforge.net via Gcc-bugs
Component: libquadmath Assignee: unassigned at gcc dot gnu.org Reporter: mw_triad at users dot sourceforge.net Target Milestone: --- Many sources in libquadmath (and also libgo) contain the following notice: Copyright (C) 1993

[Bug libquadmath/119397] missing license file for SunPro covered sources

2025-03-21 Thread mw_triad at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119397 --- Comment #2 from Matthew Woehlke --- To be clear, you are arguing that distributions of the software can entirely omit the notice because the source code is not distributed? Has that been tested in court, or has Sun Microsystems affirmed this