Mac OS X: Installed and linked gcc 6.2 with Homebrew, but gcc --version still says 4.9.2
<p>On OS X 10.11.6, I installed gcc 6.2.0 using homebrew.  It lives over in usr/local/Cellar/gcc/6.2.0/bin.  After getting it to link (it didn't do this automagically), I cd there and try the solution from <a href="https://stackoverflow.com/questions/28970935/osx-replace-gcc-version-4-2-1-with-4-9-installed-via-homebrew/28982564#28982564">this other thread</a> to create an alias </p>

<blockquote>
  <p>ln -s gcc-6 gcc
  then gcc --version gives me
  cc (GCC) 4.9.2 20141029 (prerelease)
  Copyright (C) 2014 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
</blockquote>

<p>All this is because trying to install things crashes because of -rdynamic flags, that I hope is fixed in a newer version.</p>