[Bug c/13519] typeof(nonconst+const) is const

2010-09-07 Thread radoslaw dot biernacki at gmail dot com


-- 

radoslaw dot biernacki at gmail dot com changed:

   What|Removed |Added

OtherBugsDependingO||45584
  nThis||


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

--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100907165607.852.qm...@sourceware.org



[Bug c/13519] typeof(nonconst+const) is const

2004-06-06 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-06 
15:22 ---
Subject: Bug 13519

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2004-06-06 15:21:59

Modified files:
gcc: ChangeLog c-decl.c c-tree.h c-typeck.c 
gcc/testsuite  : ChangeLog 
Added files:
gcc/testsuite/gcc.c-torture/execute: enum-3.c 
gcc/testsuite/gcc.dg: pr13519-1.c 

Log message:
PR c/13519
* c-typeck.c (composite_type, common_pointer_type): New functions.
(common_type): Split parts into composite_type and
common_pointer_type.  Ensure that arithmetic operations return
unqualified types without attributes.  Don't make composite type
of signed enum and compatible integer be unsigned.
(build_conditional_expr, build_binary_op): Use
common_pointer_type.
* c-decl.c (merge_decls): Use composite_type.
* c-tree.h (composite_type): Declare.

testsuite:
* gcc.c-torture/enum-3.c, gcc.dg/pr13519-1.c: New tests.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gccr1=2.3853r2=2.3854
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gccr1=1.504r2=1.505
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gccr1=1.147r2=1.148
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gccr1=1.308r2=1.309
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gccr1=1.3812r2=1.3813
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/enum-3.c.diff?cvsroot=gccr1=NONEr2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr13519-1.c.diff?cvsroot=gccr1=NONEr2=1.1



-- 


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

--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.




[Bug c/13519] typeof(nonconst+const) is const

2004-06-06 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-06 
15:51 ---
Fixed in 3.5.0

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |3.5.0


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

--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.




[Bug c/13519] typeof(nonconst+const) is const

2004-05-27 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-27 
18:44 ---
More to the point, now that the warnings are turned into errors in 3.4.0 and 
the mainline.  I think the 
problem is that the C front-end is taking the left side of the tree for the 
type.

-- 
   What|Removed |Added

   Last reconfirmed|2004-01-18 08:18:12 |2004-05-27 18:44:12
   date||


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

--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.




[Bug c/13519] typeof(nonconst+const) is const

2003-12-30 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-30 
17:56 ---
typeof just returns the type of the tree which it is bound to, so it looks like 
the front-end is getting 
the type wrong.

-- 


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

--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.