Public bug reported: GCC 4.9 supports colored diagnostics. Enabling them requires either using -fdiagnostics-color=auto or defining GCC_COLORS.
Ubuntu could enable colors in gcc by default just for those users who already use colors for ls/grep by patching the file /etc/skel/.bashrc with: @@ -72,20 +72,21 @@ # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' + export GCC_COLORS=" " fi # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert ** Affects: bash (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1324901 Title: Enable colors in GCC 4.9 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1324901/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs