public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43909]  New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint
@ 2010-04-27 12:08 ailin dot nemui at gmail dot com
  2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ailin dot nemui at gmail dot com @ 2010-04-27 12:08 UTC (permalink / raw)
  To: gcc-bugs

../../g++-4.5.svn/gcc/tree-ssa-structalias.c: In function 'constraint_expr
get_function_part_constraint(variable_info*, unsigned int)':
../../g++-4.5.svn/gcc/tree-ssa-structalias.c:3644:29: error: enumeral and
non-enumeral type in conditional expression [-Werror]
cc1plus: all warnings being treated as errors

tree-ssa-structalias.c:3644: c.var = ai ? ai->id : anything_id; 
                            this is a enum constant ^^^^^^^^^^^
causing a c++ warning that is being treated as fatal.

Maybe add an explicit cast to unsigned int?


-- 
           Summary: trunk rev158780. compile with --enable-build-with-cxx
                    fails in get_function_part_constraint
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ailin dot nemui at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43909


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-28 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 12:08 [Bug c++/43909] New: trunk rev158780. compile with --enable-build-with-cxx fails in get_function_part_constraint ailin dot nemui at gmail dot com
2010-04-27 12:12 ` [Bug c++/43909] " rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org
2010-04-28 11:52 ` rguenth at gcc dot gnu dot org

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).