https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808
--- Comment #8 from sduguay ---
(In reply to Jonathan Wakely from comment #6)
> In any case, I agree with confirming this as a bug: all warnings should be
> controllable by a -Wxxx option.
>
> Adding such an option is quite easy, and a good firs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808
--- Comment #4 from sduguay ---
(In reply to Jakub Jelinek from comment #2)
> You haven't explained why do you need to use #pragma once in the main cpp
> source file, are you sometimes including it as a header and other times
> compiling it as th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808
--- Comment #3 from sduguay ---
(In reply to Richard Biener from comment #1)
> Testcase:
>
> #pragma once
> int main() {}
>
> > g++ t.C -S
> t.C:1:9: warning: #pragma once in main file
> #pragma once
> ^~~~
>
>
> you could work aro
mponent: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: s_gcc_bugzilla at binarez dot com
Target Milestone: ---
I am building an environnement to execute c++ code and I do need to use #pragma
once in my main cpp source code (and all cpp files actually). When I compile, I
get th