o3de / o3de-azslc

Amazon Shader Language (AZSL) Compiler
Other
23 stars 14 forks source link

Function redeclaration internal error #37

Closed superkitcath closed 1 year ago

superkitcath commented 2 years ago

[Migrated from JIRA ATOM-6265] AZSL is supposed to tolerate redundant redeclarations of functions with the same signature. They emit a warning because it's useless, and also potentially could lose default parameter values.

But instead, the validator in the function MergeDefaultParameters seems to stop the compilation in all situations.

Tested to happen in all versions from 1.5 to now.

!image-2020-11-05-00-26-54-851.png!

siliconvoodoo commented 1 year ago

fixed on https://github.com/o3de/o3de-azslc/commit/0c4eccd90108f6283a813f996e24acb4f6635364