This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60665] New: gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used uninitialized whenever '?:' condition is false
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Mar 2014 07:40:13 +0000
- Subject: [Bug c/60665] New: gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used uninitialized whenever '?:' condition is false
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60665
Bug ID: 60665
Summary: gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer'
is used uninitialized whenever '?:' condition is false
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
I just tried to compile gcc trunk with clang and the
above warning message appears.
It looks as if it would be prudent to initialise local
variable can_refer, declared around line 1423 of gcc/ipa-devirt.c,
to some sensible default value.