This patch adds initial support for the pointer-to-data-member type. Specifically, this commit includes: New ops, types, and attributes: Add a new type !cir.member_ptr Add a new attribute #cir.da...
C++ 运行cout<\' ?) 在C++ 中,使用.运算符来访问结构体或类的成员,需要使用对象名。而在访问指向结构体或类的指针的成员时,则需要使用->运算符。因此,在你的代码中,使用.运算符访问指针s的成员data,导致了编译错误。 你需要将.运算符替换为->运算符,即可访问指针s所指向的结构体的成员data。例如: 1 cout...