From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFF183858038; Fri, 9 Apr 2021 22:14:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFF183858038 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/94446] Bogus "type mismatch" with TYPE(c_ptr) and sizeof() Date: Fri, 09 Apr 2021 22:14:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2021 22:14:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94446 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #3 from Tobias Burnus --- Created attachment 50541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50541&action=3Dedit Draft patch I wonder whether something like that would work. The only known failure is gfortran.dg/gomp/use_device_ptr-1.f90 which fails= as instead of void * x; #pragma omp target data map(alloc:x) the wrong #pragma omp target data map(alloc:*x) map(alloc:x [pointer assign, bias: = 0]) is generated (ICE as sizeof 'void' does not make sense). (Fix should be in the code block below 'case OMP_LIST_MAP:' in trans-openmp= .c) I wonder what else goes wrong with 'type(c_ptr)' and 'type(c_ptr),pointer' besides this issue and the one 'fn spec' issue (already fixed in the attach= ed patch).=