public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106072] New: Bogus -Wnonnull warning breaks rust bootstrap
@ 2022-06-24  8:00 ro at gcc dot gnu.org
  2022-06-28 12:56 ` [Bug c++/106072] " ro at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: ro at gcc dot gnu.org @ 2022-06-24  8:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106072

            Bug ID: 106072
           Summary: Bogus -Wnonnull warning breaks rust bootstrap
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---
            Target: sparc*-sun-solaris2.11

Created attachment 53198
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53198&action=edit
Workaround patch

Bootstrapping the devel/rust/master branch on Solaris/SPARC (both 32 and
64-bit)
breaks like this:

In file included from /vol/gcc/src/git/rust/gcc/rust/parse/rust-parse.h:727,
                 from
/vol/gcc/src/git/rust/gcc/rust/expand/rust-macro-builtins.cc:25:
/vol/gcc/src/git/rust/gcc/rust/parse/rust-parse-impl.h: In member function
'Rust::AST::ClosureParam
Rust::Parser<ManagedTokenSource>::parse_closure_param() [with
ManagedTokenSource = Rust::Lexer]':
/vol/gcc/src/git/rust/gcc/rust/parse/rust-parse-impl.h:9022:70: error: 'this'
pointer is null [-Werror=nonnull]
 9022 |                             std::move (type), std::move (outer_attrs));
      |                 

The error doesn't occur on i386-pc-solaris2.11, amd64-pc-solaris2.11,
i686-pc-linux-gnu, x86_64-pc-linux-gnu.

I've hacked around this with the attached patch.

The preprocessed file is 3.5 MB, unfortunately; currently trying to reduce it
to
something manageable, but this is slow going unfortunately.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-12-20 14:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  8:00 [Bug c++/106072] New: Bogus -Wnonnull warning breaks rust bootstrap ro at gcc dot gnu.org
2022-06-28 12:56 ` [Bug c++/106072] " ro at gcc dot gnu.org
2022-06-28 12:56 ` ro at gcc dot gnu.org
2022-11-15 21:02 ` ro at gcc dot gnu.org
2022-12-13 17:24 ` ro at gcc dot gnu.org
2022-12-13 17:25 ` ro at gcc dot gnu.org
2022-12-13 17:35 ` [Bug c++/106072] [13 Regression] " pinskia at gcc dot gnu.org
2022-12-13 17:35 ` pinskia at gcc dot gnu.org
2022-12-13 17:37 ` pinskia at gcc dot gnu.org
2022-12-13 17:40 ` [Bug ipa/106072] " pinskia at gcc dot gnu.org
2022-12-13 17:46 ` pinskia at gcc dot gnu.org
2022-12-14  7:51 ` iains at gcc dot gnu.org
2022-12-14  8:04 ` iains at gcc dot gnu.org
2022-12-14  8:51 ` jakub at gcc dot gnu.org
2022-12-14  8:55 ` [Bug rust/106072] " jakub at gcc dot gnu.org
2022-12-14 10:17 ` [Bug rust/106072] [13 Regression] " tschwinge at gcc dot gnu.org
2022-12-14 10:36 ` cvs-commit at gcc dot gnu.org
2022-12-20 14:05 ` rguenth at gcc dot gnu.org
2022-12-20 14:06 ` ktkachov at gcc dot gnu.org
2022-12-20 14:08 ` ro at CeBiTec dot Uni-Bielefeld.DE

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).