http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56585
--- Comment #5 from Fernando Pelliccioni
2013-03-10 17:17:58 UTC ---
Maybe GCC behavior is correct.
I thought, mistakenly, that the examples of the C++ Standard have normative
meaning.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56585
--- Comment #3 from Fernando Pelliccioni
2013-03-10 11:21:59 UTC ---
I don't see anything about "diagnostic", I only see that the Standard says
"error"
I quote a relevant excerpt from the example.
[ Example:
/* ... */
struct Data {
/* ... */
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56585
Bug #: 56585
Summary: Cannot introduce a qualified type - Elaborated type
specifiers
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONF
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5
--- Comment #6 from Fernando Pelliccioni
2012-05-12 23:53:30 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> > For other features of C++11 don't need -pedantic-errors to emit an error.
> [...]
> > It doesn't seem consistent.
> > Wha
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5
--- Comment #4 from Fernando Pelliccioni
2012-05-12 20:59:58 UTC ---
For other features of C++11 don't need -pedantic-errors to emit an error.
See..
#include
void foo( std::string && str ) {}
int main( /* int argc, char* argv[] */ )
{
fo
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5
Bug #: 5
Summary: Initializer lists in std=c++03 mode must be an error
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
--- Comment #10 from Fernando Pelliccioni
2012-05-07 13:58:38 UTC ---
(In reply to comment #9)
> (In reply to comment #8)
> [..]
> > Here the corrected code with proper comments.
> [..]
> > auto yyy = d.get();// #ifndef WITH_USING_DECLARA
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
--- Comment #8 from Fernando Pelliccioni
2012-05-07 13:24:02 UTC ---
Sorry, the comments were wrong.
Here the corrected code with proper comments.
Tested with GCC 4.7.1 and GCC 4.6.3
// g++ -std=c++0x gcc_error_simple.cpp
// g++ -DWITH_USING_D
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
--- Comment #6 from Fernando Pelliccioni
2012-05-05 22:01:23 UTC ---
// g++ -std=c++11 gcc_error_simple.cpp
// g++ -DWITH_USING_DECLARATION -std=c++11 gcc_error_simple.cpp
#include
#include
#include
template
struct Base
{
template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
--- Comment #5 from Fernando Pelliccioni
2012-05-05 22:00:05 UTC ---
Here is a simplified code -> "gcc_error_simple.cpp"
Shows two facets of the error.
See the comments in the attached file.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
--- Comment #4 from Fernando Pelliccioni
2012-05-05 21:58:53 UTC ---
Created attachment 27321
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27321
simplified source code version
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53236
Bug #: 53236
Summary: using declaration and base function template
overloading
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53108
--- Comment #1 from Fernando Pelliccioni
2012-04-25 02:36:06 UTC ---
Clang compiles OK.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53108
Bug #: 53108
Summary: Nested template classes and variadic templates
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Pri
14 matches
Mail list logo