--- Comment #6 from pinskia at gcc dot gnu dot org 2010-09-06 06:48 ---
>I thought Stallman hated those things
The reason why Stallman hated them is that they did not work with macros and
that changed with C99 adding support of _Pragma which can be used in macros
now. So his argument
--- Comment #5 from noloader at gmail dot com 2010-09-06 06:45 ---
(In reply to comment #4)
> In G++ 4.6+ you can do:
> int i;
> unsigned j;
>
> template
> void
> bar (const T& t)
> {
> #pragma GCC diagnostic push
> #pragma GCC diagnostic ignored "-Wtype-limits"
> if (t < 0)
> #pragm
--- Comment #4 from jakub at gcc dot gnu dot org 2010-09-06 06:33 ---
In G++ 4.6+ you can do:
int i;
unsigned j;
template
void
bar (const T& t)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
if (t < 0)
#pragma GCC diagnostic pop
{
i++;
}
}
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-09-06 05:39 ---
It is still a dup of bug 11856. Note the use of bug here is really dealing
with how do you describe all issues (enhancements or otherwise). The use is
not saying it is a "software bug" in the normal sense.
*** Thi
--- Comment #2 from noloader at gmail dot com 2010-09-06 05:35 ---
(In reply to comment #1)
>
> *** This bug has been marked as a duplicate of 11856 ***
>
Thanks Andrew. For the record, I don't really consider it a bug - its closer to
undesired behavior when working with generics/templ
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-09-06 05:24 ---
*** This bug has been marked as a duplicate of 11856 ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--