[Bug c/59304] #pragma diagnostic pop fails with -Wswitch-enum

2013-11-26 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59304 --- Comment #3 from Manuel López-Ibáñez --- (In reply to DJ Delorie from comment #2) > Once found, we scan backwards through the array looking for #pragmas that > might affect the diagnostic. If we see one, that's what we use. If we see > a DK_P

[Bug c/59304] #pragma diagnostic pop fails with -Wswitch-enum

2013-11-26 Thread dj at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59304 --- Comment #2 from DJ Delorie --- The diagnostic changes that happen with #pragmas are stored in a linear array, which corresponds (somehow) to the linear input source file representation. So, given a location in the source, we can find the spot

[Bug c/59304] #pragma diagnostic pop fails with -Wswitch-enum

2013-11-26 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59304 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|