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?
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243
Jim Michaels changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|INVALID
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80243
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
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;
}