http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52620
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-19
16:10:08 UTC ---
template <typename T>
struct bot: med<T>
{
using top::type;
This is not valid, med<T> is a dependent base class so name lookup never looks
in it, so top is not known to be a base class.
If you remove that line G++ accepts the code.
> PS/ It is extremely confusing to be submit possible "duplicates"
> that are not even C++ :(
I assume you mean the list of possible dups when filling in the form?
Your "C++" bug might actually be a middle-end bug, or a preprocessor bug, or
something else, so it makes sense to look for dups across the whole database.