Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty parameter list in proc causes exception #942

Closed
avelure opened this issue Aug 12, 2024 · 0 comments
Closed

Empty parameter list in proc causes exception #942

avelure opened this issue Aug 12, 2024 · 0 comments

Comments

@avelure
Copy link

avelure commented Aug 12, 2024

This isn't valid code, but I assume it should handle it more gracefully.

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity test is
end entity test;

architecture rtl of test is
begin
  process(all)
  
    procedure test_func (
    ) is
    begin
    end procedure test_func ;
  begin
    wait;
  end process;
    
end architecture rtl;
$ nvc --std=08 -a test_proc_empty_param.vhd
** Error: unexpected ) while parsing interface declaration, expecting one of constant, signal, variable, file, identifier, type, function, procedure, pure, impure or package
    > C:\proj\public\minimal\test_proc_empty_param.vhd:13
    |
 13 |     ) is
    |     ^ this token was unexpected

*** Caught exception c0000005 (EXCEPTION_ACCESS_VIOLATION) [address=0000000000000008, ip=00007FF67AB30404] ***

[00007FF67AAF3320]
[00007FF67AAF36D9]
[00007FFC02C00B1C] UnhandledExceptionFilter+0x1ec
[00007FFC053596BD] RtlCopyMemory+0x2bbd
[00007FFC0533F667] _C_specific_handler+0x97
[00007FFC0535504F] _chkstk+0x12f
[00007FFC052CE866] RtlFindCharInUnicodeString+0xa96
[00007FFC0535403E] KiUserExceptionDispatcher+0x2e
[00007FF67AB30404]
[00007FF67AB027F3]
[00007FF67AB249FC]
[00007FF67AB3A0DA]
[00007FF67AAFBD27]
[00007FF67AAF9D4A]
[00007FF67AAF621C]
[00007FF67AB5DED0]
[00007FF67AAE5501]
[00007FF67AAE2A2B]
[00007FF67AAD1311]
[00007FF67AAD1366]
[00007FFC04DC257D] BaseThreadInitThunk+0x1d
[00007FFC0530AF28] RtlUserThreadStart+0x28

Please report this bug at https://github.com/nickg/nvc/issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant