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/67668] New: erroneous type argument for unary operator one's complement


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67668

            Bug ID: 67668
           Summary: erroneous type argument for unary operator one's
                    complement
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ka_bena at yahoo dot fr
  Target Milestone: ---

int main(void)
{ 
  ~( 1. + 0.i ) ; 
  ~(1.)           ; 
  return 0      ;
}

/* Results:: 
   main_cmp1_err.c:4:3: attention : statement with no effect [-Wunused-value]
      ~( 1. + 0.i ) ; 
      ^
   main_cmp1_err.c:5:3: erreur: type d'argument erronà pour un complÃment de
bit
      ~(1.)           ; 
      ^
   Comment:: ( 1. + 0.i ) must be an erroneous type argument for ~ . 

   Microsoft Windows XP Profesional version2002 Service Pack 3.
   Gcc 4.8.0 win32 mingw32  
*/

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