possible bug with pointer to template member function

2006-10-26 Thread rodolfo
Hi, I've come with a problem with g++ 4.1.1 and people at gcc-help said they think it's a bug, so I'll forward my original email to this list. Regards, Rodolfo Lima - Forwarded message from Rodolfo Schulz de Lima <[EMAIL PROTECTED]> - > Date: Fri, 13 Oct 20

Deprecation of -I- and -iquote

2010-04-10 Thread Rodolfo Lima
es -iquote, and there's a patch floating around that adds -ignore-source-dir flag (http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00653.html). What else is needed move this forward? Regards, Rodolfo Lima

C++0x Concepts development schedule

2008-11-21 Thread Rodolfo Lima
dy, I'm sort of excited because of the possibilities it unleashes. I'd really like to help on this task, but I never worked on GCC internals, and helping implement concepts for it isn't the best or more efficient way to start :) Best regards and thanks for the awesome compiler you guys put out, Rodolfo Lima

Re: C++0x Concepts development schedule

2008-11-22 Thread Rodolfo Lima
to do that. When the time to get the hands dirty arrives, I'll need to know if somebody's working off-branch on some parts to avoid unnecessary work. I also know that ConceptGCC's implementation isn't the best, so it'll be good to know which parts of it are in good shape and which must be rethought and reimplemented. Regards, Rodolfo Lima

C++0x unrestricted unions

2009-06-15 Thread Rodolfo Lima
Hi, I'd like to know if somebody is implementing c++0x's unrestricted unions (N2544) in g++, or if there are any plans to do it in mid-term. Thanks, Rodolfo Lima

Re: C++0x unrestricted unions

2009-06-15 Thread Rodolfo Lima
Rodolfo Lima escreveu: > Hi, I'd like to know if somebody is implementing c++0x's unrestricted > unions (N2544) in g++, or if there are any plans to do it in mid-term. Sorry, by 'in mid-term' I meant "in a not too distant timeframe". []s, rod

Re: Delegating constructors patch

2010-07-06 Thread Rodolfo Lima
Em 06-07-2010 07:46, Paolo Carlini escreveu: > That work is incomplete, cannot be merged as-is: Thanks for pointing it out for me, Paolo. []s, rod

inapropriate 'comparison is always false due to limited range of data type' warning

2006-09-29 Thread Rodolfo Hansen
Hello, [EMAIL PROTECTED] ~ $ gcc -O0 test.c -o test test.c: In function 'main': test.c:5: warning: comparison is always false due to limited range of data type does not make sense to me in the following code: #include int main (char *argv[], int argc) { unsigned short int number; for (nu

out of source builds and precompiled headers

2013-06-16 Thread Rodolfo Lima
weren't applied, this kind of demotivate me. Best regards, Rodolfo Lima

-Winvalid-pch semantics

2008-01-30 Thread Rodolfo Lima
get rid of those spurious warnings in detriment of not knowing whether the pch was used or not. Regards, Rodolfo Lima.

Fix C++0x regressions for gcc-4.3

2008-02-23 Thread Rodolfo Lima
ho are already using C++0x new features. Regards, Rodolfo Lima.

Re: Fix C++0x regressions for gcc-4.3

2008-02-24 Thread Rodolfo Lima
GCC, but that doesn't work now. Thanks for your explanation (and Andrew's in a private message). I was looking for this info in a FAQ but couldn't find it. Regards, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-19 Thread Rodolfo Lima
biguity. > This problem can be also reduced to this one: > == > void foo() { } > void foo(int) { } > > int main() > { >&foo; > } > == This is different because there's no function template involved. Regards, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-19 Thread Rodolfo Lima
function is added. Being the only function in the set, there's no ambiguity and the address of "void foo()" should be passed to "bar". Best regards, Rodolfo Lima.

Re: Address of template function bug (was: Overload resolution compilation error)

2007-08-05 Thread Rodolfo Lima
Rodolfo Schulz de Lima escreveu: > Dave Korn escreveu: >> Thanks, and do drop a note back with a summary of what you find out > over >> there when you're done; if there's definitely a bug in gcc's > understanding of >> the resolution rules, obvious

On the requirements of offsetof Macro in C++.

2008-10-12 Thread Rodolfo Federico Gamarra
in other cases may not. Are there any guarantees besides what's currently dictated by the standard? In particular, may 'offsetof' in GNU/gcc work properly with types that only respect the (new) requirement of having "standard-layout"? If so, does it happen in any particular version? Thanks a lot for your help. -- Rodolfo Federico Gamarra

Help forging a function_decl

2013-07-17 Thread Rodolfo Guilherme Wottrich
#x27;t. What am I doing wrong, and how can one do such a thing? Maybe the problem is that I create no calls to that new function, what do you think? Anyway, I'm compiling with -O0, so I guess no optimization pass would remove my function just because it is not being used. Thanks in advance, -

Re: Help forging a function_decl

2013-07-22 Thread Rodolfo Guilherme Wottrich
is simply not output. And when I try to debug gcc with gdb, it always fails. Any thoughts? Maybe I am missing something related to garbage collection or so... Not a clue. --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp 2013/7/22 Martin Jambor : > Hi, > > On W

Re: Help forging a function_decl

2013-07-22 Thread Rodolfo Guilherme Wottrich
ut my implementation right after the end of c_parser_omp_parallel(), in file c-parser.c. Again, thank you for the help. --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp 2013/7/22 Rodolfo Guilherme Wottrich : > Hello, > > Thanks! I had solved the problem some days a

Re: Help forging a function_decl

2013-07-23 Thread Rodolfo Guilherme Wottrich
and see whether your function is listed. You were right, but this is a direct consequence of my function being removed like discussed before. I'll keep investigating the problem and will inform you in case something changes. Thank you, --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp

Re: Help forging a function_decl

2013-07-23 Thread Rodolfo Guilherme Wottrich
citly setting DECL_EXTERNAL to false. Cheers, --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp 2013/7/23 Rodolfo Guilherme Wottrich : > Hello, > > 2013/7/23 Martin Jambor : >> Hi, >> >> But you do call cgraph_add_new_function on it as well, righ

Re: Help forging a function_decl

2013-07-24 Thread Rodolfo Guilherme Wottrich
Again, thank you for the patience. I'm kind of new to gcc, so I was basically learning how to do it. Kindest regards, --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp 2013/7/23 Rodolfo Guilherme Wottrich : > Later I found out that cgraph_mark_needed_node was already b

Generating multiple binaries from a single source file

2013-08-31 Thread Rodolfo Guilherme Wottrich
the flag thing is the best way to do it, please let me know and help me, telling how to implement that new flag (I can't figure out how to). Thanks in advance, --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp

Re: Generating multiple binaries from a single source file

2013-09-02 Thread Rodolfo Guilherme Wottrich
y to do it? Regards, --- Rodolfo Guilherme Wottrich Universidade Estadual de Campinas - Unicamp 2013/9/1 David Edelsohn : > On Sat, Aug 31, 2013 at 11:57 PM, Rodolfo Guilherme Wottrich > wrote: >> Hello everyone, >> >> I would like to be able to generate multiple binaries fro

Re: Deprecation of -I- and -iquote

2010-04-12 Thread Rodolfo Schulz de Lima
s internals to make a thorough check. The message gcc output, saying that -iquote should be used instead of -I- is just plain wrong. Seeing that 4.5.0 release is just around the corner, is it feasible to have this patch committed into 4.5 branch? Best regards, Rodolfo Lima

[4.5 Regression] class partial specialization error

2010-07-01 Thread Rodolfo Schulz de Lima
Hello, I've posted a message to comp.gcc.help with a compiler error I'm having but after some testing me and others found out is a regression on gcc-4.5, the code is the following: // --- template struct identity { typedef T type; }; template struct foo {};

Re: [4.5 Regression] class partial specialization error

2010-07-01 Thread Rodolfo Schulz de Lima
Jonathan Wakely wrote: > Thanks. There's no need to post it to this mailing list too, bugzilla > changes already go to the gcc-bugs mailing list where people can track > new bug reports. Oh, sorry ;) []s, rod

Delegating constructors patch

2010-07-05 Thread Rodolfo Schulz de Lima
Hi, I'd like to know if there's plans to merge Pedro LamarĂ£o's implementation of delegating constructors into trunk. While we're at it, is there someone implementing C++0x's inheriting constructors? Regards, Rodolfo Lima

Problem with object initialization

2008-02-22 Thread Rodolfo Schulz de Lima
test a(data(*)()), isn't it? What's the catch? Regards, Rodolfo Lima.

Re: Problem with object initialization

2008-02-22 Thread Rodolfo Schulz de Lima
type test and taking an argument of the type data. Thanks for the explanation. I'll look for this info in the standard to have a better grasp of what's involved here. Regards, Rodolfo Lima.

Overload resolution compilation error

2007-07-19 Thread Rodolfo Schulz de Lima
; } int main() { // proper way (according to g++) to call non-templated print // call(static_cast(&print)); call(&print); call(&print<5>); call(&print<7,6>); return 0; } The correct output should be: null 5 7 6 Thanks for your help, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-19 Thread Rodolfo Schulz de Lima
en consider this situation in overload resolution. With this said, in your exemple the only overload for '&foo' should be 'void foo()'. == void foo() { } template void foo() { } int main() { &foo; } == It can help you to understand what's happend. Yes, thank you, your example is much more concise. Thanks, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-20 Thread Rodolfo Schulz de Lima
the former not. Regards, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-20 Thread Rodolfo Schulz de Lima
Overload resolution with template and non-template functions", and it's waiting for moderator approval. Regards, Rodolfo Lima.

Re: Overload resolution compilation error

2007-07-30 Thread Rodolfo Schulz de Lima
Dave Korn escreveu: Thanks, and do drop a note back with a summary of what you find out over there when you're done; if there's definitely a bug in gcc's understanding of the resolution rules, obviously we'd like to open a PR and get it fixed. I think we have finally a consensus at http://gr

Address of template function bug (was: Overload resolution compilation error)

2007-07-31 Thread Rodolfo Schulz de Lima
Dave Korn escreveu: > Thanks, and do drop a note back with a summary of what you find out over > there when you're done; if there's definitely a bug in gcc's understanding of > the resolution rules, obviously we'd like to open a PR and get it fixed. I think we have finally a consensus at ht