public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/62002] New: -fcilkplus switch breaks format attribute.
@ 2014-08-03 15:45 astellar at ro dot ru
2014-08-03 15:50 ` [Bug other/62002] " mpolacek at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: astellar at ro dot ru @ 2014-08-03 15:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
Bug ID: 62002
Summary: -fcilkplus switch breaks format attribute.
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: astellar at ro dot ru
~/src/test# cat test.cpp
struct foo
{
void bar(char const *, ...) __attribute__((__format__(__printf__, 2, 3)));
};
`g++-4.9 -c test.cpp` compiles without errors. However, `g++-4.9 -fcilkplus -c
test.cpp` produces this message:
test.cpp:3:77: error: format string argument is not a string type
void bar(char const *, ...) __attribute__((__format__(__printf__, 2, 3)));
I've compiled GCC from git mirror's 4.9 branch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/62002] -fcilkplus switch breaks format attribute.
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
@ 2014-08-03 15:50 ` mpolacek at gcc dot gnu.org
2014-08-06 15:01 ` izamyatin at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-08-03 15:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-08-03
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/62002] -fcilkplus switch breaks format attribute.
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
2014-08-03 15:50 ` [Bug other/62002] " mpolacek at gcc dot gnu.org
@ 2014-08-06 15:01 ` izamyatin at gmail dot com
2014-08-06 15:34 ` astellar at ro dot ru
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: izamyatin at gmail dot com @ 2014-08-06 15:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
Igor Zamyatin <izamyatin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |izamyatin at gmail dot com
--- Comment #2 from Igor Zamyatin <izamyatin at gmail dot com> ---
Am I correct that adding -fcilkplus just fixes the bug somehow?
I see that regular trunk g++ gives error for
struct foo
{
void bar(void *my_object, char const *, ...)
__attribute__((__format__(__printf__, 2, 3)));
};
which is supposed to be correct according to the
docs(https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/62002] -fcilkplus switch breaks format attribute.
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
2014-08-03 15:50 ` [Bug other/62002] " mpolacek at gcc dot gnu.org
2014-08-06 15:01 ` izamyatin at gmail dot com
@ 2014-08-06 15:34 ` astellar at ro dot ru
2014-08-06 15:44 ` izamyatin at gmail dot com
2015-06-10 23:05 ` astellar at ro dot ru
4 siblings, 0 replies; 6+ messages in thread
From: astellar at ro dot ru @ 2014-08-06 15:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
--- Comment #3 from Viacheslav Chernyshev <astellar at ro dot ru> ---
No, fcilkplus switch triggers compilation error when code is perfectly valid.
Your example is wrong, as in C++ this pointer is an implicit first argument of
member function.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/62002] -fcilkplus switch breaks format attribute.
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
` (2 preceding siblings ...)
2014-08-06 15:34 ` astellar at ro dot ru
@ 2014-08-06 15:44 ` izamyatin at gmail dot com
2015-06-10 23:05 ` astellar at ro dot ru
4 siblings, 0 replies; 6+ messages in thread
From: izamyatin at gmail dot com @ 2014-08-06 15:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
--- Comment #4 from Igor Zamyatin <izamyatin at gmail dot com> ---
Right, it is mentioned explicitly in the docs. Will take a look
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/62002] -fcilkplus switch breaks format attribute.
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
` (3 preceding siblings ...)
2014-08-06 15:44 ` izamyatin at gmail dot com
@ 2015-06-10 23:05 ` astellar at ro dot ru
4 siblings, 0 replies; 6+ messages in thread
From: astellar at ro dot ru @ 2015-06-10 23:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002
Viacheslav Chernyshev <astellar at ro dot ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.9.2 |5.1.0
--- Comment #5 from Viacheslav Chernyshev <astellar at ro dot ru> ---
I would like to resurrect this bugreport, as the same problem still happens
with GCC 5.1.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-10 23:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-03 15:45 [Bug other/62002] New: -fcilkplus switch breaks format attribute astellar at ro dot ru
2014-08-03 15:50 ` [Bug other/62002] " mpolacek at gcc dot gnu.org
2014-08-06 15:01 ` izamyatin at gmail dot com
2014-08-06 15:34 ` astellar at ro dot ru
2014-08-06 15:44 ` izamyatin at gmail dot com
2015-06-10 23:05 ` astellar at ro dot ru
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).