public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45385] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-20 1:25 ` paolo.carlini at oracle dot com
2011-10-20 8:21 ` manu at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-20 1:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|gcc-bugs at gcc dot |lopezibanez at gmail dot
|gnu.org, mendola at gmail |com
|dot com |
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-20 01:25:23 UTC ---
Manuel, I seem to remember you did some work in this area?!?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
2011-10-20 1:25 ` [Bug c++/45385] missing -Wconversion for method calls paolo.carlini at oracle dot com
@ 2011-10-20 8:21 ` manu at gcc dot gnu.org
2011-10-20 8:28 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu.org @ 2011-10-20 8:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-10-20 08:19:05 UTC ---
There is a check in c-common.c:conversion_warning that tests for things
generated by the compiler by looking for artificial operands. The implicit
*this pointer is probably triggering here. One could test for *this or perhaps
there is a better way to check for compiler-generated expressions (if you
remove the check, you should trigger a regression in the testsuite).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
2011-10-20 1:25 ` [Bug c++/45385] missing -Wconversion for method calls paolo.carlini at oracle dot com
2011-10-20 8:21 ` manu at gcc dot gnu.org
@ 2011-10-20 8:28 ` paolo.carlini at oracle dot com
2011-10-20 23:57 ` [Bug c++/45385] [4.4/4.5/4.6/4.7 Regression] " paolo.carlini at oracle dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-20 8:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-20 08:27:38 UTC ---
Thanks a lot. If I understand correctly this is a regression affecting a very
sensible warning which we want to fix for 4.7, at least. We should mark it as
such.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] [4.4/4.5/4.6/4.7 Regression] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2011-10-20 8:28 ` paolo.carlini at oracle dot com
@ 2011-10-20 23:57 ` paolo.carlini at oracle dot com
2011-10-21 20:02 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-20 23:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC|lopezibanez at gmail dot |
|com, paolo.carlini at |
|oracle dot com |
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] [4.4/4.5/4.6/4.7 Regression] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2011-10-20 23:57 ` [Bug c++/45385] [4.4/4.5/4.6/4.7 Regression] " paolo.carlini at oracle dot com
@ 2011-10-21 20:02 ` paolo at gcc dot gnu.org
2011-10-21 20:03 ` [Bug c++/45385] [4.4/4.5/4.6 " paolo.carlini at oracle dot com
2011-11-13 18:18 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-10-21 20:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-21 20:01:34 UTC ---
Author: paolo
Date: Fri Oct 21 20:01:31 2011
New Revision: 180312
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180312
Log:
/cp
2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45385
* init.c (build_vec_init): Early return error_mark_node if
maxindex is -1.
/c-family
2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45385
* c-common.c (conversion_warning): Remove code looking for
artificial operands.
/testsuite
2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/45385
* g++.dg/warn/Wconversion4.C: New.
Added:
trunk/gcc/testsuite/g++.dg/warn/Wconversion4.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] [4.4/4.5/4.6 Regression] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2011-10-21 20:02 ` paolo at gcc dot gnu.org
@ 2011-10-21 20:03 ` paolo.carlini at oracle dot com
2011-11-13 18:18 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-21 20:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.4/4.5/4.6/4.7 |[4.4/4.5/4.6 Regression]
|Regression] missing |missing -Wconversion for
|-Wconversion for method |method calls
|calls |
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-21 20:02:53 UTC ---
Fixed for 4.7.0 so far.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/45385] [4.4/4.5/4.6 Regression] missing -Wconversion for method calls
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2011-10-21 20:03 ` [Bug c++/45385] [4.4/4.5/4.6 " paolo.carlini at oracle dot com
@ 2011-11-13 18:18 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-13 18:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45385
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-13 16:36:53 UTC ---
Fixed for 4.7.0.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-11-13 16:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45385-4@http.gcc.gnu.org/bugzilla/>
2011-10-20 1:25 ` [Bug c++/45385] missing -Wconversion for method calls paolo.carlini at oracle dot com
2011-10-20 8:21 ` manu at gcc dot gnu.org
2011-10-20 8:28 ` paolo.carlini at oracle dot com
2011-10-20 23:57 ` [Bug c++/45385] [4.4/4.5/4.6/4.7 Regression] " paolo.carlini at oracle dot com
2011-10-21 20:02 ` paolo at gcc dot gnu.org
2011-10-21 20:03 ` [Bug c++/45385] [4.4/4.5/4.6 " paolo.carlini at oracle dot com
2011-11-13 18:18 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).