Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla

Bug 38

Summary: gdc --version should indicate D version in use
Product: GDC Reporter: Joe Wakeling <joseph.wakeling>
Component: gdcAssignee: Iain Buclaw <ibuclaw>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: slavo5150
Priority: ---    
Version: development   
Hardware: x86_64   
OS: All   

Description Joe Wakeling 2013-02-22 17:34:44 CET
gdc --version currently only indicates the underlying GCC version, e.g.:

   gdc (GCC) 4.8.0 20130209 (experimental) [trunk revision 195917]

For clarity, it would be useful to also indicate the corresponding D version, e.g. 2.062.  For comparison see the output of ldc2 --version:

   LDC - the LLVM D compiler (trunk):
     based on DMD v2.061 and LLVM 3.2
     Default target: x86_64-pc-linux-gnu
     Host CPU: corei7-avx

The same applies to gdmd --help.  When dmd --help is called, it indicates the D version in use, e.g.:

   DMD64 D Compiler v2.062
Comment 1 Iain Buclaw 2013-02-22 17:43:19 CET
For gdmd, maybe. For gdc, probably not.
Comment 2 Joe Wakeling 2013-02-22 17:45:11 CET
I thought you might say that -- I presume it's related to GCC policy?
Comment 3 Iain Buclaw 2013-02-22 17:51:31 CET
(In reply to comment #2)
> I thought you might say that -- I presume it's related to GCC policy?

There is no way to describe the language supported by GCC in terms of a specific version.  So instead we advice that in general GDC tracks the evolving specification closely, and any given release will support the language as of the date that the release was frozen.   This version number will be documented in manuals that come with the software.
Comment 4 Johannes Pfau 2014-04-12 09:03:11 CEST
*** Bug 89 has been marked as a duplicate of this bug. ***