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

fix Issue 11322 - ICE with -inline cgcs.c 221 #2809

Closed
wants to merge 1 commit into from

Conversation

WalterBright
Copy link
Member

@yebblies
Copy link
Member

Same problem with

bool b;
uint i;

ref uint fun()
{
    if(b)
        return i;
    else
        return i;
}

void analyze()
{
    fun()+=1;
}

Are you sure this is the way to go to fix this?

@WalterBright
Copy link
Member Author

Yah, let me think about it some more.

@9rnsr
Copy link
Contributor

9rnsr commented Nov 19, 2013

How about using Expression::toLvalue from inline.c?

@9rnsr
Copy link
Contributor

9rnsr commented Nov 19, 2013

I opened #2823 to show my idea.

@WalterBright
Copy link
Member Author

#2823 is better

@WalterBright WalterBright deleted the fix11322 branch November 19, 2013 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants