[Bug c/60837] New: initializer element is not constant: int test = (1, 2) + 1;

2014-04-13 Thread potrepa...@asc-ural.ru
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: potrepa...@asc-ural.ru main.c -- int test = (6, 9) + 1; int main( void ) { return 0; } -- >gcc main.c main.c:1:1: error: initializer element is not constant

[Bug c/60837] initializer element is not constant: int test = (1, 2) + 1;

2014-04-13 Thread potrepa...@asc-ural.ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60837 ilya changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/60838] New: bugos warning: initializer element is not a constant expression: int test = (0 ? (1,0) : 0) + 1;

2014-04-13 Thread potrepa...@asc-ural.ru
Severity: minor Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: potrepa...@asc-ural.ru main.c: - int test = (0 ? (3, 0) : 0) + 1; int main( void ) { return 0; } - >gcc main.c main.c:1:12: warn

[Bug c/60838] bugos warning: initializer element is not a constant expression: int test = (0 ? (1,0) : 0) + 1;

2014-04-13 Thread potrepa...@asc-ural.ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60838 --- Comment #1 from ilya --- Another testcase: main.c - int test1 = (0 ? 0 : 0) + 1; int test2 = (0 ? (3, 0) : 0) + 1; int test3[(0 ? 0 : 0) + 1]; int test4[(0 ? (3, 0) : 0) + 1]; int main( void ) { return 0; } -

[Bug c/63991] New: redundant read when write to volatile member of packed structure

2014-11-20 Thread potrepa...@asc-ural.ru
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: potrepa...@asc-ural.ru There is redundant read when write to volatile member of packed structure: exti.c: --- typedef struct { volatile unsigned int IMR; volatile unsigned