relying on the version output is not recommended. There are hardly any
distro builds of GCC shipping releases, but instead using the FSF
branches or vendor branches.  So when using a branch you'll see 4.7.1
already shortly after the 4.7.0 release. Then just looking at the
version will result in a wrong check on your part.  Ubuntu only bumps
the version when the point release is made. This is more conservative
and avoids checking for things that are not yet there, but doesn't help
for feature checking. If you rely on features for branches, don't use
version checks but feature checks instead.

I'll change that for 4.9, but not for released versions.


** Also affects: gcc-4.9 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: gcc-4.8 (Ubuntu)
       Status: New => Won't Fix

** Changed in: gcc-4.7 (Ubuntu)
       Status: New => Won't Fix

** Changed in: gcc-4.6 (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1360404

Title:
  -dumpversion output inconsistent with upstream

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.6/+bug/1360404/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to