[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2019-09-25 Thread postmas...@trippelsdorf-de.bounceio.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #10 from postmas...@trippelsdorf-de.bounceio.net --- Your email was bounced... - ... because something went wrong between you and your recipient. Ugh! What to do next?

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread jmichae3 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #8 from Jim Michaels --- you are right, that code does work, my example needed debugging. so if I can return a struct here, why not in my other code, unless gcc is confused somehow? alas, I cannot supply source or .ii files because

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread jmichae3 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #6 from Jim Michaels --- atoi64.cpp:1974:1: error: expected 'while' before 'ATOLDRESULT' ATOLDRESULT atold_(S str,bool oldCOctalEnabled=false,bool groupCharEnabled=true,C groupChar=',',VS dimensionArr={""},bool

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread jmichae3 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 Jim Michaels changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #4 from Jonathan Wakely --- Your second example doesn't compile for a very simple reason: (In reply to Jim Michaels from comment #1) > #include > #include > typedef struct {std::string s;int i;} Structsb; > Structsb fn(std::string

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #3 from Jonathan Wakely --- (In reply to Jim Michaels from comment #0) > c++ doesn't allow function to return a struct. Of course it does. Please stop reporting a bug every time your code doesn't compile, or you misunderstand how

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/80243] c++ doesn't allow function to return a struct (or object?) - same thing

2017-03-28 Thread jmichae3 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243 --- Comment #1 from Jim Michaels --- #include #include typedef struct {std::string s;int i;} Structsb; Structsb fn(std::string s1, int i1) { return {s1,i1}; } int main() {} Structsb structsb=fn("string",1); return strustsb.i; }