This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/38472] [4.4 Regression] Wrong result type of ternary operator



------- Comment #4 from dodji at gcc dot gnu dot org  2009-01-05 22:41 -------
Subject: Bug 38472

Author: dodji
Date: Mon Jan  5 22:41:37 2009
New Revision: 143101

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143101
Log:
gcc/cp/ChangeLog:
2009-01-05  Dodji Seketeli  <dodji@redhat.com>

        PR c++/38472
        * typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
        Promotion should be done only for integral or enumeration types.

gcc/testsuite/ChangeLog:
2009-01-05  Dodji Seketeli  <dodji@redhat.com>

        PR c++/38472
        * g++.dg/conversion/usual-arith-conv.C: New test.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]