Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meaningfull error messages. #4

Open
raphendyr opened this issue Oct 18, 2012 · 1 comment
Open

Meaningfull error messages. #4

raphendyr opened this issue Oct 18, 2012 · 1 comment

Comments

@raphendyr
Copy link
Owner

GCC error messages with templates are unreable.

Any ideas how to make them readable?

Is the funktion attribute to check parameter and print readable error message?

@raphendyr
Copy link
Owner Author

Example of what I mean:

In file included from types__pinset.cc:3:0:
yaal/types/pinset.hh: In instantiation of ‘yaal::Pinset<Pin0, Pin1, Pin2, Pin3, Pin4, Pin5, Pin6, Pin7>::self_type& yaal::Pinset<Pin0, Pin1, Pin2, Pin3, Pin4, Pin5, Pin6, Pin7>::operator=(uint8_t) [with Pin0 = yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 0u>; Pin1 = yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 1u>; Pin2 = yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 2u>; Pin3 = yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 3u>; Pin4 = yaal::Pin<yaal::Port<yaal::NullRegister, yaal::NullRegister, yaal::NullRegister, 0u>, 255u>; Pin5 = yaal::Pin<yaal::Port<yaal::NullRegister, yaal::NullRegister, yaal::NullRegister, 0u>, 255u>; Pin6 = yaal::Pin<yaal::Port<yaal::NullRegister, yaal::NullRegister, yaal::NullRegister, 0u>, 255u>; Pin7 = yaal::Pin<yaal::Port<yaal::NullRegister, yaal::NullRegister, yaal::NullRegister, 0u>, 255u>; yaal::Pinset<Pin0, Pin1, Pin2, Pin3, Pin4, Pin5, Pin6, Pin7>::self_type = yaal::Pinset<yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 0u>, yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 1u>, yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 2u>, yaal::Pin<yaal::Port<yaal::Register<6297780ull, unsigned char>, yaal::Register<6297781ull, unsigned char>, yaal::Register<6297782ull, unsigned char> >, 3u> >; uint8_t = unsigned char]’:
types__pinset.cc:38:5:   required from here
yaal/types/pinset.hh:32:9: warning: no return statement in function returning non-void [-Wreturn-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant