Issue error if any complex assignment operator is used with a struct type.

Issue #275.
This commit is contained in:
Matt Pharr
2012-06-08 11:29:02 -07:00
parent 92b3ae41dd
commit e730a5364b
2 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
// Assignment operator "+=" is illegal with struct type
struct Point { float x, y, z; };
void foo() {
Point a = {1,2,3}, b = {4,5,6};
a += b;
}