microsoft / microsoft/DirectXShaderCompiler
int f(int) as /E results in "Internal compiler error: access violation. Attempted to read from address 0x0000000000000018"
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
this input program:
int f( int)
{
return 0 ;
}
int a;
static int b = f ( a) ;
options:
/T ps_6_2 /E f
causes
either:
Internal compiler error: access violation. Attempted to read from address 0x0000000000000018
either:
error: llvm::cast() argument of incompatible type!
randomly.
dxc versions tested: 1.6.x and 1.7.2212.12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied C input with /T ps_6_2 /E f using the tested dxc versions and compare the two reported failures. Trace the compiler path reached by this entry-point and determine the expected behavior; done means the input no longer causes an access violation or incompatible-type assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100