Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2018 06:51:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 229855] lang/gcc6: The preprocessor cpp6 loses line concatenation
Message-ID:  <bug-229855-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229855

            Bug ID: 229855
           Summary: lang/gcc6: The preprocessor cpp6 loses line
                    concatenation
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: yuri@freebsd.org
             Flags: maintainer-feedback?(gerald@FreeBSD.org)
          Assignee: gerald@FreeBSD.org

How to repeat:
create the file a.f90 with this one line (it is also attached):
>     call iotk_strcat(string,trim(adjustl(tmpval))//" ",ierr)

Run the command:
> cpp6 a.f90 -o atmp.f90

The result isn't a valid fortran:
>      call iotk_strcat(string,trim(adjustl(tmpval))

Braces aren't closed, everything after // is missing.

This doesn't happen on linux.

How did I find this problem: one fortran project fails to build for this
reason. It uses cpp6 to preprocess fortran, and produces broken preprocessed
fortran files.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229855-7788>