n12:/home/vbe $ oslevel -r;gcc --version
7200-01
gcc (GCC) 7.2.0
Copyright (C) 2017 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.
Satisfied?
Yes gcc 7.2 can be installed, but no one said its would be like on a linux... its not that obvious you need to READ what it says about installing, specially ALL the prerequirements which means to go through all what you have installed to see if you wont go through dependencies issues...
it installs itself just fine if all the prereqs are satisfied... But it can be at the expenses of other packages that wont work anymore ( I had a lovely firefox 64bit running, now thats a month I am trying to find how to get it working again... the good side of it, I had to get to reuse command I forgot like dump, ar etc...)
Firefox was more for me and for some utilities, GCC7.2 was a service request as its a prereq of something they needed, I knew I was going into a mess somewhere but what they want is there and working, so think hard why would you want GCC7.2 rather than a 4.8.X that gives no problem, if stuck like me because you need it because its a prereq for something else, then go ahead, and dont do like me in a panic one evening, take your time and BACKUP ALL your libs, it can save your life... I splitted my mirror rootvg, but the service for who this box is dedicated said it was not an option to rollback as for them all is working ( after suffering 2 days...), so I find myself struggling for my own needs, when I have some time to spare...