public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/105544] New: gdc fails to compile d source from stdin
@ 2022-05-10  9:33 fabian@ritter-vogt.de
  2022-05-10  9:34 ` [Bug d/105544] " fabian@ritter-vogt.de
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: fabian@ritter-vogt.de @ 2022-05-10  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105544
           Summary: gdc fails to compile d source from stdin
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: fabian@ritter-vogt.de
  Target Milestone: ---

Reading code from stdin doesn't work. strace shows that it attempts to read
from a file "<stdin>" repeatedly.

~> echo "pragma(msg, int(__VERSION__));" | /usr/bin/gdc -x d -
<stdin>:2:1: error: Outside Unicode code space
<stdin>:2:1: error: Outside Unicode code space
<stdin>:2:1: error: Outside Unicode code space
<stdin>:2:1: error: Outside Unicode code space
...
<stdin>:2: error: no identifier for declarator �����������...

Expected behaviour:

~> echo "pragma(msg, int(__VERSION__));" > ver.d; /usr/bin/gdc-11 -x d
/tmp/ver.d
2076
/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/11/../../../../lib64/Scrt1.o: in function
`_start':
/home/abuild/rpmbuild/BUILD/glibc-2.35/csu/../sysdeps/x86_64/start.S:103:
undefined reference to `main'
collect2: error: ld returned 1 exit status

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

end of thread, other threads:[~2022-05-31 16:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10  9:33 [Bug d/105544] New: gdc fails to compile d source from stdin fabian@ritter-vogt.de
2022-05-10  9:34 ` [Bug d/105544] " fabian@ritter-vogt.de
2022-05-10  9:35 ` marxin at gcc dot gnu.org
2022-05-10 12:11 ` ibuclaw at gcc dot gnu.org
2022-05-10 12:14 ` marxin at gcc dot gnu.org
2022-05-11 22:06 ` ibuclaw at gcc dot gnu.org
2022-05-12  6:58 ` marxin at gcc dot gnu.org
2022-05-12  7:39 ` fabian@ritter-vogt.de
2022-05-12  7:47 ` marxin at gcc dot gnu.org
2022-05-12  9:32 ` ibuclaw at gcc dot gnu.org
2022-05-12  9:44 ` fabian@ritter-vogt.de
2022-05-12 12:58 ` ibuclaw at gcc dot gnu.org
2022-05-12 13:18 ` fabian@ritter-vogt.de
2022-05-31 16:32 ` cvs-commit at gcc dot gnu.org
2022-05-31 16:33 ` cvs-commit at gcc dot gnu.org
2022-05-31 16:37 ` ibuclaw at gdcproject dot org

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