[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2022-03-17 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2018-01-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 Martin Sebor changed: What|Removed |Added CC||sylvestre at debian dot org --- Comment #

[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2017-12-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 Martin Sebor changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2017-12-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2017-12-15 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 --- Comment #2 from Daniel Fruzynski --- Sometimes actual location is not reported at all: [code] #include #include struct S { char* str; int n; char out[10]; }; void test(S* s) { if (s->str) snprintf(s->out, sizeof(s

[Bug c++/83429] Incorrect line number reported by -Wformat-truncation

2017-12-15 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83429 --- Comment #1 from Daniel Fruzynski --- Another test case, this time "note:" with argument range also points to incorrect line: [code] #include struct S { unsigned char n; char out[2]; }; void test(S* s) // line 9 { snprintf(s->o