[Bug other/62002] -fcilkplus switch breaks format attribute.

2017-12-04 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #8 from Paolo Carlini  ---
Cilk Plus, deprecated for 7.x, will not be in 8.x.

[Bug other/62002] -fcilkplus switch breaks format attribute.

2017-11-15 Thread vincenzo.romano at notorand dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002

Vincenzo Romano  changed:

   What|Removed |Added

 CC||vincenzo.romano at notorand 
dot it

--- Comment #7 from Vincenzo Romano  ---
The original code snippet is wrong.

It should read

void bar(char const *, ...) __attribute__((__format__(__printf__, 1, 2)));

instead of

void bar(char const *, ...) __attribute__((__format__(__printf__, 2, 3)));

Accordingly to the documentation at

https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes

The second __format__() argument is the 1-based position of the formatting
string, while the third one is the 1-based position of the first argument to be
checked.

[Bug other/62002] -fcilkplus switch breaks format attribute.

2016-02-03 Thread v.chernyshev at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62002

--- Comment #6 from Viacheslav Chernyshev  ---
Still happens on 5.3.0.

[Bug other/62002] -fcilkplus switch breaks format attribute.

2015-06-10 Thread astellar at ro dot ru
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.


[Bug other/62002] -fcilkplus switch breaks format attribute.

2014-08-06 Thread izamyatin at gmail dot com
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)


[Bug other/62002] -fcilkplus switch breaks format attribute.

2014-08-06 Thread astellar at ro dot ru
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.


[Bug other/62002] -fcilkplus switch breaks format attribute.

2014-08-06 Thread izamyatin at gmail dot com
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


[Bug other/62002] -fcilkplus switch breaks format attribute.

2014-08-03 Thread mpolacek at gcc dot gnu.org
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.