Uh oh ... I have an issue I can't resolve. Probably it is due to gcc-4.6.2.
I already emerge gcc-4.6.2 with useflag "gcj" enabled, as advised by a previous message from portage. After that I get this message. Any ideas?

emerge -pv virtual/jre gave the circular dependency error again.
I was only able to emerge dev-java/icedtea-bin-1.10.4
Ohh, what have I done..._________________"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"

I could resolve most of this by emerging dev-java/ant-nodeps first.
Now the only package which fails to compile is dev-java/icedtea-7.2.0-r1._________________"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"

BUILD FAILED
/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build-defs.xml:86: Problem: failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/usr/share/ant-core/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.

I've already had java and everything installed, and I disabled all the USE-flags to try and resolve it, but alas, the dependency is still there, and I don't really know what else to try other than unmerging/remerging random things.

I could resolve that by first emerge icedtea-bin followed by dev-java/ant-core._________________"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"

BUILD FAILED
/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk/jaxp/build-defs.xml:86: Problem: failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-/usr/share/ant-core/lib
-/root/.ant/lib
-a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.