This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51816] [4.7 Regression] Wrong error when use..., only : operator() twice
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 22:52:53 +0000
- Subject: [Bug fortran/51816] [4.7 Regression] Wrong error when use..., only : operator() twice
- Auto-submitted: auto-generated
- References: <bug-51816-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51816
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-01-10 22:52:53 UTC ---
(In reply to comment #2)
> No error with r183001 (likely r183010, CCed Tobias).
It's actually only revealed by my patch - the bug is older. Try:
use foo, only : t, operator(*), t, operator(*)
implicit none
type(t) :: i = t(1), j = t(2)
print *, i*j
end
That gives exactly the same error (with GCC 4.1, 4.2-4.7).