Created
October 12, 2015 15:00
-
-
Save dgutov/19c45ef43d1c90b96483 to your computer and use it in GitHub Desktop.
Semantic bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct foo { | |
int a; | |
int b; | |
}; | |
struct bar { | |
int c; | |
int d; | |
}; | |
foo tee(int i) { | |
foo f; | |
return f; | |
} | |
bar tee(long i) { | |
bar b; | |
return b; | |
} | |
int main() { | |
int i = 1; | |
long l = 2; | |
tee(i).| | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment