This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67668] New: erroneous type argument for unary operator one's complement
- From: "ka_bena at yahoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Sep 2015 12:24:18 +0000
- Subject: [Bug c/67668] New: erroneous type argument for unary operator one's complement
- Auto-submitted: auto-generated
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
*/