diff --git a/sources/scalac/transformer/ExplicitOuterClasses.java b/sources/scalac/transformer/ExplicitOuterClasses.java
index <HASH>..<HASH> 100644
--- a/sources/scalac/transformer/ExplicitOuterClasses.java
+++ b/sources/scalac/transformer/ExplicitOuterClasses.java
@@ -153,6 +153,9 @@ public class ExplicitOuterClasses extends Transformer {
         }
 
         case Ident(Name name): {
+            if (! name.isTermName())
+                return super.transform(tree);
+
             // Follow "outer" links to fetch data in outer classes.
             Symbol sym = tree.symbol();
             Symbol owner = sym.classOwner();
- bug fix: do not use outer links to access typ...

- bug fix: do not use outer links to access type parameters of outer
classes