Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 38 - gdc --version should indicate D version in use
Summary: gdc --version should indicate D version in use
Status: RESOLVED WONTFIX
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: x86_64 All
: --- enhancement
Assignee: Iain Buclaw
URL:
: 89 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-22 17:34 CET by Joe Wakeling
Modified: 2023-01-07 21:02 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***