This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80467] Function Without Arguments Fails to Generate Error When Declared Later
- From: "jeffrey.armstrong at approximatrix dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 May 2017 13:05:12 +0000
- Subject: [Bug fortran/80467] Function Without Arguments Fails to Generate Error When Declared Later
- Auto-submitted: auto-generated
- References: <bug-80467-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80467
--- Comment #2 from Jeffrey Armstrong <jeffrey.armstrong at approximatrix dot com> ---
I agree that the code is invalid, and it is the user's responsibility.
However, I don't think an internal compiler error is appropriate in this case.
An actual error would be preferable.