[Bug c++/86706] New: GCC 8.2 ICE in build_base_path, at cp/class.c:294

2018-07-27 Thread eugene.zelenko at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- Created attachment 44454 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44454&action=edit Problematic code snippet I experienced ICE in build_base_path

[Bug c++/82790] [GCC 5, 6, 7] -Wuseless-cast doesn't detect unnecessary removal of const

2017-11-01 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82790 --- Comment #2 from Eugene Zelenko --- Just a little bit of background: a lot of legacy C code was converted to C++, so a lot of type casts were necessary to compile it properly. Gradually char * are converted to const char *, so -Wuseless-cast w

[Bug c++/82790] New: [GCC 5, 6, 7] -Wuseless-cast doesn't detect unnecessary removal of const

2017-10-31 Thread eugene.zelenko at gmail dot com
erity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- [GCC 5, 6, 7] -Wuseless-cast doesn't detect unnecessary removal of const. For example: static void Function(

[Bug c++/59793] Warning to suggest making trivial non-virtual method inline

2017-09-28 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59793 --- Comment #2 from Eugene Zelenko --- Something like that: class Class { private: int Data; public: int GetData() const; }; int Class::GetData() const { return Data; }

[Bug c++/80729] New: [GCC 6, 7] -Wuseless-cast doesn't detect casting string literals to (const char*)

2017-05-12 Thread eugene.zelenko at gmail dot com
IRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- -Wuseless-cast doesn't detect casting string literals to (const char*), like (const char*) "strin

[Bug c++/71069] -Waddress didn't catch all cases

2016-07-04 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71069 --- Comment #3 from Eugene Zelenko --- (In reply to Andrew Pinski from comment #2) > -fsantize=undefined will catch this at runtime. What is undefined is > passing a NULL to setData. It'll be much better to report such problems during compilati

[Bug c++/71302] New: -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call

2016-05-26 Thread eugene.zelenko at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- Created attachment 38579 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38579&action=edit Simp

[Bug web/71283] New: -Wterminate is not described in "Options to Request or Suppress Warnings"

2016-05-25 Thread eugene.zelenko at gmail dot com
Severity: normal Priority: P3 Component: web Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- -Wterminate description is missing in "Options to Request or Suppress Warnings".

[Bug c++/71069] -Waddress didn't catch all cases

2016-05-11 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71069 --- Comment #1 from Eugene Zelenko --- Sorry for mistake in original report. -Waddress should report such problems.

[Bug c++/71069] New: Extend -Wnonnull-compare to address of reference

2016-05-11 Thread eugene.zelenko at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- I had crash in optimized build because pointer check is skipped in next situation (null pointer is sneaked into container): void setData( Data &

[Bug c/66918] Disable "inline function declared but never defined" warning

2015-07-19 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66918 --- Comment #4 from Eugene Zelenko --- (In reply to Manuel López-Ibáñez from comment #3) > Does Clang have an option for this? GCC could use the same name. > > (The same warning exists in the C++ FE, thus it should be controlled by the > same op

[Bug c/66918] Disable "inline function declared but never defined" warning

2015-07-18 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66918 --- Comment #2 from Eugene Zelenko --- (In reply to Andrew Pinski from comment #1) > Could you explain why you don't want to have this warning really. This > warning is telling you that the inline function is not defined just like > static func

[Bug c/66918] New: Disable "inline function declared but never defined" warning

2015-07-17 Thread eugene.zelenko at gmail dot com
ty: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Target Milestone: --- It looks like there is no way to disable this warning (at least in 5.2.0). Part of my code base is built with -Werror, so I usu

[Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous

2015-06-15 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60407 Eugene Zelenko changed: What|Removed |Added CC||eugene.zelenko at gmail dot com

[Bug c/65213] New: Extend -Wmissing-declarations to variables

2015-02-25 Thread eugene.zelenko at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Will be good idea to -Wmissing-declarations to variables. Global variable should have extern declaration in header file, otherwise variable should be static. Clang detect such situations with

[Bug c++/64431] "-Wignored-qualifiers" warning gives misleading position in code

2015-01-30 Thread eugene.zelenko at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64431 Eugene Zelenko changed: What|Removed |Added CC||eugene.zelenko at gmail dot com

[Bug c++/59570] Warning for semicolon trailing closing curly brackets

2014-02-26 Thread eugene.zelenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59570 Eugene Zelenko changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Eugene Ze

[Bug c++/59793] New: Warning to suggest making trivial non-virtual method inline

2014-01-13 Thread eugene.zelenko at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Hi! I think will be great to have warning which will suggest to make trivial non-vuirtual method inline and move to class declaration. Possible criteria of

[Bug c++/59792] New: Warning to suggest making non-virtual method const

2014-01-13 Thread eugene.zelenko at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Hi! I think will be great to have warning which will suggest to make non-vuirtual method const if doesn't modify object's state and/or call only other const methods. Eugene.

[Bug c++/59570] New: Warning for semicolon trailing closing curly brackets

2013-12-20 Thread eugene.zelenko at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Hi! I think will be great to have warning when useless semicolon trails closing curly bracket (closing function definition or code block). Same should be done for C. Eugene.

[Bug c++/59563] New: Warning for void as parameter list in C++

2013-12-19 Thread eugene.zelenko at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Hi! I think will be great to have warning when void is used as function parameter for indication of empty arguments list in C++ code (i. e. not extern "C"). Such coding style have sen

[Bug c++/59552] New: Warning when non-trivial type parameter is passed by value but not changed in function

2013-12-18 Thread eugene.zelenko at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com Hi! I think will be good idea to introduce warnings for situations when non-trivial type (of big size or with non-default copy

[Bug sanitizer/57884] False positive in libgfortran finalization

2013-07-11 Thread eugene.zelenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57884 --- Comment #2 from Eugene Zelenko --- Sorry, forgot to add GCC configuration information in original report: Using built-in specs. COLLECT_GCC=/gcc481/bin/gcc COLLECT_LTO_WRAPPER=/gcc481/libexec/gcc/x86_64-redhat-linux/4.8.1/lto-wrapper Target:

[Bug sanitizer/57884] False positive in libgfortran finalization

2013-07-11 Thread eugene.zelenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57884 --- Comment #1 from Eugene Zelenko --- Created attachment 30498 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30498&action=edit zcopy FORTRAN procedure from BLAS

[Bug sanitizer/57884] New: False positive in libgfortran finalization

2013-07-11 Thread eugene.zelenko at gmail dot com
: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: eugene.zelenko at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Created attachment 30497 --> http://gcc.gnu.

[Bug c/54817] New: Warning about extern declarations in C and C++ files.

2012-10-04 Thread eugene.zelenko at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54817 Bug #: 54817 Summary: Warning about extern declarations in C and C++ files. Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: e