Can gdc --version or -dumpversion output the corresponding DMD front-end (language) version?

mw mingwu at gmail.com
Tue Jul 11 18:08:30 UTC 2023


Hi,

Currently,

```
$ gdc-12 --version
gdc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0

$ gdc-12 -dumpversion
12
```

this is not very informative, as D (DMD) language is always 
changing, Can gdc --version or -dumpversion output the 
corresponding DMD front-end (language) version?

just as LDC does:

```
$ ldc2 --version
LDC - the LLVM D compiler (1.32.2):
   based on DMD v2.102.2 and LLVM 15.0.7

```




More information about the D.gnu mailing list