Guest User

Untitled

a guest
Apr 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $ ./cppgl17.sh p252
  2. $ clang++ p252.cpp
  3. p252.cpp:22:1: error: unknown type name 'I'; did you mean 'X::I'?
  4. I b; // error
  5. ^
  6. X::I
  7. p252.cpp:8:15: note: 'X::I' declared here
  8. typedef int I;
  9. ^
  10. p252.cpp:23:1: error: unknown type name 'Y'; did you mean 'X::Y'?
  11. Y c; // error
  12. ^
  13. X::Y
  14. p252.cpp:9:9: note: 'X::Y' declared here
  15. class Y { /* ... */
  16. ^
  17. 2 errors generated.
  18.  
  19. $ g++-7 p252.cpp
  20. p252.cpp:22:1: error: 'I' does not name a type
  21. I b; // error
  22. ^
  23. p252.cpp:23:1: error: 'Y' does not name a type
  24. Y c; // error
  25. ^
Add Comment
Please, Sign In to add comment